Add SQLAlchemy v0.7.x compatibility