Added cache key check on reporting, finished the DB reporting