Support SQLAlchemy 0.8

The method was changed in SQLAlchemy 0.8: http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-b9d4ab67bbed4b4cbf58ffa3665cc480