PHP database class and example user class