Added support for PDO connections.