def METHOD_NAME(
    db: orm.Session, tool: models.DatabaseTool, name: str
) -> models.DatabaseNature | None:
    return db.execute(
        sa.select(models.DatabaseNature)
        .where(models.DatabaseNature.tool == tool)
        .where(models.DatabaseNature.name == name)
    ).scalar_one_or_none()