title: .fetchone() and .fetchall() giving none type although when printing the output, the required data has been retrieved
body: <p>I'm trying to retrieve the id of the last entry to a data base. <code>id.fetchall()</code> gives <code>[(1,), (2,), (3,), (4,), (5,), (6,), (7,)]</code> but <code>len(id.fetchall()</code> comes as 0 and when I try to do <code>id.fetchall[-1]</code> it says index is out of range. My code is as follows:</p>
  
  <pre><code>            self.curs = self.conn.cursor()
              id = self.curs.execute('''SELECT id FROM Addresses''')
  
              entry = str(id.fetchall()[-1][0]) + str(firstname) + ' ' + str(lastname)
              menu = self.addedrecord['menu']
              menu.add_command(label = entry, command = lambda value = entry: self.selectedrecord.set(value))
  
              self.statuslabel.grid_forget()
              self.statuslabel.config(text = 'Record Loaded')
              self.statuslabel.grid(row = 20, column = 1, columnspan = 2)
  
              self.conn.commit()
              self.conn.close() 
  
  </code></pre>