Wrapper Class and Functions for PHP's PDO