Added check and reset of max number of allowed queries per day