Right now it's possible to have duplicate entries in the userorg table. This can happen if a user is invited to an org they are already part of.