Send ajax on event creation, create event in db