Fix bug with paginate queries.
Tweak how query elapsed time is calculated.