public String createCalendar(String username, String calendar, boolean isPublic) {
		try {
			crs = qb.selectFrom("calendars").where("calendar", "=", calendar).executeQuery();

			if(!crs.next()) {
				if(isPublic)
				{
					String[] keys = {"calendar", "createdBy"};
					String[] values = {calendar, username};
					qb.insertInto("calendars", keys).values(values).execute();
				} else {
					String[] keys = {"calendar", "createdBy", "isPublic"};
					String[] values = {calendar, username, "0"};
					qb.insertInto("calendars", keys).values(values).execute();
					String[] keys2 = {"username", "calendar"};
					String[] values2 = {username, calendar};
					qb.insertInto("usercalendars", keys2).values(values2).execute();
				}
				return "Calendar created";
			} else {
				return "Calendar exists";
			}
		} catch (SQLException e) {
			return "error";
		} finally {
			try {
				crs.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
	}