added DB callback for createEvent