public void updateRaws(String cookieName) {
		ArrayList<String> materials = getIng(cookieName);
		for (int i = 0; i < materials.size(); i++) {
			ResultSet rs1 = null;
			ResultSet rs2 = null;
			String materialType = materials.get(i);
			int amountInStock = 0;
			int amountNeeded = 0;
			String sql1 = "select amountNeeded from RecipesHasIngridients where materialType = ?";
			try {
				PreparedStatement ps = conn.prepareStatement(sql1);
				ps.setString(1, materialType);
				rs1 = ps.executeQuery();
				if(rs1.next()){
					amountNeeded = rs1.getInt("amountNeeded");
				};
			} catch (SQLException e) {
				e.printStackTrace();
			}
			String sql2 = "select amountInStock from RawMaterials where materialType = ?";
			try {
				PreparedStatement ps = conn.prepareStatement(sql2);
				ps.setString(1, materialType);
				rs2 = ps.executeQuery();
				if(rs2.next()){
					amountInStock = rs2.getInt("amountInStock");
				};
			} catch (SQLException e) {
				e.printStackTrace();
			}
			int howManyPallets = PalletsProduced(cookieName);
			int calc = amountInStock - howManyPallets * 54 * amountNeeded;
			String sql3 = "update RawMaterials set amountInStock = ? where materialType = ?";
			try {
				PreparedStatement ps3 = conn.prepareStatement(sql3);
				ps3.setInt(1, calc);
				ps3.setString(2, materialType);
				ps3.executeUpdate();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
	}