Event creation working

events can be created and stored in the db