convert db_version to sqlalchemy.