public String execute(DeleteEventObject deleteEventObject) throws SQLException{

		resultSet = queryBuilder.selectFrom("events").where("eventName", "=", deleteEventObject.getEventToDelete()).ExecuteQuery();

		if(resultSet.next()){

			String calendarID = resultSet.getString("calendarid");

			resultSet = queryBuilder.selectFrom("Users").where("username", "=", deleteEventObject.getuserID()).ExecuteQuery();
			resultSet.next();
			String userID = resultSet.getString("userID");


			resultSet = queryBuilder.selectFrom("autherrights").where("calendarID", "=", calendarID).ExecuteQuery();

			author = false;

			while(resultSet.next()){
				if(resultSet.getString("userID").equals(userID)){
					author = true;
				}
			}

			if (author){
				resultSet = queryBuilder.selectFrom("Events").where("eventName", "=", deleteEventObject.getEventToDelete()).ExecuteQuery();
				resultSet.next();
				String eventID = resultSet.getString("eventid");
				try{
					queryBuilder.deleteFrom("Notes").where("eventID", "=", eventID).Execute();
				}catch(Exception e){
					e.printStackTrace();
				}
				queryBuilder.deleteFrom("events").where("eventid", "=", eventID).Execute();

				message = String.format("Event " + deleteEventObject.getEventToDelete() + " has been deleted, with associated note.");
				deleted = true;

			}else{
				deleted = false;
				message = "Your are not the owner of this Event";
			}
		}else{
			deleted = false;
			message = "Event does not exist";
		}

		dero.setMessage(message);
		dero.setDeleted(deleted);

		answer = gson.toJson(dero);
		return answer;
	}