Refactoring some queries

Queries: get_good_request_count, get_bad_request_count and
get_response_time_avg
New time values for grace period
Releasing 0.9