Update the inventory