adding metrics_cache_index table to schema along with initial query support