Add some timing data to the logs

Opening this mostly for comment.

I was wondering how long queries take to execute, this should add this to the logs (modulo log level).