alter mask_level to mediumint

The sql field `mask_level` save a bigger int (the group id). The current setup is wrong.