db: mail_queue: not to use deprecated escapeInteger/escapeString (partial)