Clean up inventory code. Fix data model