handle duplicate events because dbtext does not support transactions