set_item_data function

Set / save data for an item.