public int saveStance(String playerName, int stance, String targetName) {
		int success = 0;

		String SQL = "UPDATE " + tblStances + " SET `stance` = ?" + " WHERE `player` = ?" + " AND `target` = ?;";

		Connection con = getSQLConnection();
		PreparedStatement statement = null;
		try {
			statement = con.prepareStatement(SQL);
			statement.setInt(1, stance);
			statement.setString(2, playerName);
			statement.setString(3, targetName);

			success = statement.executeUpdate();

		} catch (SQLException e) {
			e.printStackTrace();
		}

		if (success == 0) {// Entry wasn't already in the table, we'll create it
							// now.
			SQL = "INSERT INTO " + tblStances + " (`id` , `player` , `stance` , `target` , `time`)" + " VALUES (NULL , ?, ?, ?, NULL)";

			try {

				statement = con.prepareStatement(SQL);

				statement.setString(1, playerName);
				statement.setInt(2, stance);
				statement.setString(3, targetName);

				success = statement.executeUpdate();

			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		try {
			statement.close();
			con.close();
		} catch (SQLException e) {
		}
		return success;
	}