Adding aggregates table