Fix ORM is not compatible with SQLAlchemy 0.9.1