Move response time logging to application layer middleware.
Leave the query to be chosen by the route.
Clean up. Remove handle error method as it's only used once.