create indexes for aggregated table