return token when adding user; handle view-class-name correctly when ensuring table exists