fix expires
handle duplicate events

handle duplicate events since dbtext doesn't support transactions
removed extra log