#update - use old IDs if index already exists or generate new item