Merge "add and use updateExternalDBGroups function, fixes #49641"