PHP database class based on PDO