PDO hack to database core file to allow PDO operation