patch account type and group table