Revised SQL database.
Implemented basic user management.