fix some sms permissions having the wrong corresponding web api permission, rebuild table