Extracted connection / statement base classes from PDO / Doctrine DBAL.