Add -verbose flag

Enabling this flag causes every query to be logged. This can come in
handy for debugging purposes.