Enable tracking of query times

I'm having issues with longish queries and this enables me to debug them easily.