Adds parentships to tags