[feature] monolog support

Adds the option to attach a monolog handler for logging SQL statements.