dataapi saving and retrieving inventory