static public void commitSlots(Player p, SerializableInventory inv) {
		try {
			reconnect();
			PreparedStatement delete = con.prepareStatement("DELETE FROM `inv_slots` WHERE `server` = ? AND `player` = ?");
			delete.setString(1, SQLWrapper.plugin.getConfig().getString("general.server.name"));
			delete.setString(2, p.getName());
			delete.execute();

			String sqlstring = "INSERT INTO `inv_slots` (`server`,`player`,`json`,`slot`) VALUES ";
			
			if(inv.getSlots().size() == 0)
				return;
			
			for(int i = 0; i < inv.getSlots().size(); i++) {
				sqlstring = sqlstring.concat("(?,?,?,?)");
				
				if(i < inv.getSlots().size()-1)
					sqlstring = sqlstring.concat(",");
			}
			
			PreparedStatement stat = con.prepareStatement(sqlstring);
			
			int i = 0;
			String name = SQLWrapper.plugin.getConfig().getString("general.server.name");
			for(Entry<Integer, ItemStack> slot : inv.getSlots().entrySet()) {
				stat.setString((i*4) + 1, name);
				stat.setString((i*4) + 2, p.getName());
				
				JSONObject obj = new JSONObject();
				obj.putAll(SerializableInventory.serialize(slot.getValue()));
				
				String encoded = Base64Coder.encodeString(obj.toJSONString());
				
				stat.setString((i*4) + 3, encoded);
				stat.setInt((i*4) + 4, slot.getKey());
				i++;
			}
			
			if(plugin.isDebugMode)
				plugin.getLogger().info("Committing Slot Array: " + stat.toString());
			
			stat.execute();
		} catch (SQLException e) { e.printStackTrace(); }
	}