refactor public views, add 'primary' attribute to user table
refactor public views, add 'primary' attribute to user table