added insert, update and delete methods for the event class