Use the query property from req instead of custom 'getParams'
Add time logging for debugging