added events from DB functionality
added events from DB functionality