Add timed logging to all db queries.