Implements User dao methods.
Fix sql for database initialization.