

def check_db_health() -> bool:
    try:
        with sync_engine.connect() as c:
            c.execute(text("SELECT 1"))
        return True
    except Exception:
        return False
dashboard.py fixed
