introduce get debug info method for queries
implement query debug info for PDO queries