[server][DBAgent] Use VariableItemGroupPtr to reduce the lines where an InsertArg instance is built.