Fixed some bugs in Users.php
Database schema was updated
Fixed some errors