Bugfix for setting user status
Database setup script