[server][DBAgent] Use static const int instead of #define according to the coding convention.