Attempt at fixing #1
User handler A.K.A most of database.php