Add '-raw' for Flask

Uses SQLAlchemy core for connection pooling but not the ORM.

Also tweak the single query code slightly for both normal (ORM) and
raw (non-ORM).