Log every database queries on each request to file.