Create table-prefixed query name for Pdo statement cache
Cache and Cache-check PDO statements
fix debug error in checking for PDO errors.