correct primary key on insert event date