Added code to save events to database