Add SQL logging to PostgreSQL and SQLite

Usage is as follows:

```nimrod
import db_postgres

db_postgres.SQL_LOGGING = true

# ... do your database queries ...
```

I've tested this on both databases.  Don't have a MySQL setup so that will have to come later.