Guarding against SQLAlchemy 0.9.x (for now).