public String execute(CreateCalendarObject createCalendarObject) throws SQLException{
		
		doesExist = authenticateNewCalender(createCalendarObject.getCalendarName());
		
		if (doesExist == false){
			String [] keys = {"calendarName","imported","privatePublic"};
			String [] values = {
					createCalendarObject.getCalendarName(), 
					"0",//A newly created calendar is never imported.
					createCalendarObject.getPrivatePublic()
					};
			
			queryBuilder.insertInto(dbConfig.getCalendar(), keys).values(values).Execute();
			
			resultSet = queryBuilder.selectFrom("calendars").where("calendarname", "=", createCalendarObject.getCalendarName()).ExecuteQuery();
			resultSet.next();
			String newCalendarID = resultSet.getString("calendarid");
			
			for(String n : createCalendarObject.getUsers())//sets initial subscribers for the new calendar
			{
				resultSet = queryBuilder.selectFrom("users").where("username", "=", n).ExecuteQuery();
				resultSet.next();
				String userID = resultSet.getString("userid");
				String[] keysUser = {"userid", "calendarid"};
				String[] valuesUser = {
						userID,
						newCalendarID
				};
				queryBuilder.insertInto("Subscription", keysUser).values(valuesUser).Execute();
			}
			
			for(String n : createCalendarObject.getAuthors())//sets initial authors for the new calendar
			{
				resultSet = queryBuilder.selectFrom("users").where("username", "=", n).ExecuteQuery();
				resultSet.next();
				String authorID = resultSet.getString("userid");
				String[] keysAuthor = {"userid", "calendarid"};
				String[] valuesAuthor = {
						authorID,
						newCalendarID
				};
				queryBuilder.insertInto("AutherRights", keysAuthor).values(valuesAuthor).Execute();
			}
			created = true;
			message = "Calendar successfully created";
			
			ccro.setCreated(created);
			ccro.setMessage(message);
					
		}else if(doesExist == true){
			created = false;
			message = "Calendar already exsists";
			ccro.setCreated(created);
			ccro.setMessage(message);
			
		}else{
			created = false;
			message = "System error";
			ccro.setCreated(created);
			ccro.setMessage(message);
		}
		
		answer = gson.toJson(ccro);
		
		return answer;
	}