Inventory and purchasing database