Add unique constraint in users_groups (Issue #454)

Issue #454; tested with MSSQL, MySQL & PostgreSQL. MongoDB unaffected.
Merge pull request #455 from daverogers/2

Add unique constraint in users_groups (Issue #454)