[#2] Add columns for parent IDs to subtables