Added JSON Handling to insert new events