Setting a primary in the db API should be as simple as `useremail.primary = True`. This should automatically unset primary for all else. (I didn't know about SQLAlchemy validators when I originally wrote Lastuser).