associate and store root id in definition table