PDO database logging handler for Monolog