db: status: fix code not to use deprecated escapeInteger