Cleanup.
Counting number of queries and time for single request.