Simple database class for php5