handle duplicate events

handle duplicate events since dbtext doesn't support transactions