db: group: fix code not to use deprecated escapeInteger