Fix: avoid adding duplicate group
When add a new user, part of groups may exist in database already. This
fix is to avoid trying to add those existing groups. Instead, get
existing groups and build the relationship between new user and those
groups directly.
Signed-off-by: Chenxiong Qi <cqi@redhat.com>