added events to db