bugs in inventory-database changes