Properly deal with collisions in repo codes when creating repositories
Set the user's repo if they save a record to a different repo than they have selected