REPLACE into the event table rather than INSERT.