Change
atcommand "@adjgroupid 5"; >> atcommand "@adjgroup 5";
Also, group_id is not changing in SQL DB because it is temporary until players log out. You can also add this line to check whether the group has changed or not.
dispbottom "Group level "+getgmlevel();