fix maskLevel is set with group id while it should be group level

See #144

In this solution, the db column `mask_level` remains but gets valuated with group levels instead of group ids as its name suggests