Changed reserved word 'user' to 'username' in db.