trace ancestors, store to new origins table