add code for inserting data into wapo_entity_agg