Log database queries to ``database_queries.log``

Making it somewhat simpler to diagnose exceptions arising from the
database :)
Merge pull request #70 from alphagov/log-db-queries

Log database queries to ``database_queries.log``