fix missing insert in agentgroup table