Minor fix to DBAPI::query when dumping SQL