export aggregated events sql/tab formats