[server][DBAgent] Add a 'const' qualifier to accept both 'ItemData *' and 'const ItemData *'.