Added simple query profiling.

The time the query took is displayed in milliseconds.

```
[2013-06-18 10:58:05] cms.DEBUG: "COMMIT" [] []
[2013-06-18 10:58:06] cms.DEBUG: Query took 7ms. [] []
```