Added the scalar() to query_time_per_request() to simplify code.