added inventory insersion function. takes an item_id key and value as JSON body. fix #9