Coding bug in inventory_db.inc. Fixed.