insert into aggregate tables