PDO MySQL class with exception handling and helper methods.