Useful PHP PDO Class