removed Inventory model class and modified some cursor getters