added basic CRUD functions for events