added unique index to db and addUser method to group model, adding users to groups should work now