def METHOD_NAME(
    db: orm.Session, version_id: int
) -> models.DatabaseVersion:
    return db.execute(
        sa.select(models.DatabaseVersion).where(
            models.DatabaseVersion.id == version_id
        )
    ).scalar_one()