Changes to mdl_sta_parent table