Added index to InventoryHisory