public int setLoyalty(String playerName, double loyalty) {
		String SQL = "UPDATE " + tblSkills + " SET " + "`leadership` = ? WHERE `player` LIKE ? ;";

		int updateSuccessful = 0;

		Connection con = getSQLConnection();
		PreparedStatement statement = null;

		try {
			statement = con.prepareStatement(SQL);
			statement.setDouble(1, loyalty);
			statement.setString(2, playerName);
			updateSuccessful = statement.executeUpdate();
		} catch (SQLException e) {
			e.printStackTrace();
		}

		if (updateSuccessful == 0) {
			SQL = "INSERT INTO " + tblSkills + " (`id` ,`player` ,`leadership` ,`loyalty`) VALUES (NULL , ?, NULL, ?);";
			try {
				statement = con.prepareStatement(SQL);
				statement.setString(1, playerName);
				statement.setDouble(2, loyalty);
				updateSuccessful = statement.executeUpdate();
				statement.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}

		try {
			statement.close();
			con.close();
		} catch (SQLException e) {
		}

		loyaltyCache.put(playerName, loyalty);

		return updateSuccessful;
	}