update the relations of user,group and role.
many to many