implemented save events in db update