correcting deleteEvent and createEvent in DatabaseManager class