PHP Database class to connect to a MySQL database