prevent multiple additions to usergroup table (work around #1606)