Implemented first revision of inventory save/setting from database.