Update an event or create a new event and return json. Also fixed get method