title: tuple indices must be integers or slices, not str
body: <p>I'm running into this issue when using mySQL. My result = <code>[{'email': 'bernie@shrimp.com'}]</code> but I'm getting an <code>TypeError: tuple indices must be integers or slices, not str</code> when I'm doing <code>email = results[0]['email']</code></p>
  
  <p>The thing is when I'm running this locally it works perfectly. How do I get <code>bernie@shrimp.com</code>?</p>
  
  <p>users is a table</p>
  
  <p>Code:</p>
  
  <pre><code>cursor.execute('SELECT email FROM users WHERE username = %s', [attempted_username])
  email_dict = cursor.fetchall()
  print(email_dict)
  session['email'] = email_dict[0]['email']
  </code></pre>
  
  <p>Console: </p>
  
  <pre><code>[{'email': 'bernie@shrimp.com'}]
  </code></pre>