Pretty generic question, but none of the other solutions seemed to work for me. 

This is what I have, and at the moment it always returns that the Username doesn't exist. I want the code to go through all the data and check if an input (x) can be found in the table. Thanks.

x = an input from the user
c = conn.cursor() 

```
def read_from_db():
   c.execute("SELECT user FROM stuffToPlot ") 
   if x in c.fetchall():
      print('Username already exists')
   if x not in c.fetchall():
      print("Username doesn't exist")

```