Add '-raw' for Flask (uses SQLAlchemy core for connection pooling
but not the ORM.

Tweak the single query code slightly for both normal (ORM) and
raw (non-ORM)