fix save grades when no grade yet
fix adding new type to existing people: add necessary roles if this is a user