As far as I can see, the only problem is that your column name "user" is a SQL reserved keyword. Change the name of that column (in the database and in the code), remove all of the quotes around all of the column names, and everything should work, it does for me.