Add unique constraint in users_groups (Issue #454)

Issue #454; tested with MSSQL, MySQL & PostgreSQL. MongoDB unaffected.