updated addInventory.php