We are not talking about the adv_settinggroup table though are we. I am trying to see where your at. Do you have ppgal_ prefixed gallery tables in your database? If you do your past those old tables.
If you continue to have issues I might need to see your site because I can only guess by what your posting it is not like I am doing things first hand.