Global commit

All classes including the Database one are tested and work fine.
UsersDAO.class.php works fine, but more verifications needed.
ActivityDAO.class.php isn't yet tested.