Replaced xmldb:remove-user-from-group(), as it is deprecated.
Replaced xmldb:add-user-to-group(), as it is deprecated, with
sm:add-group-member().