added events from DB functionality