Added check for sqlalchemy version