Added events POST method, created conditional logic to put if id is present, post if not