implement saving of player inventory to db