Bugfixes to Inventory DB Table Schema