def get_running_services(conn):
    """
    Return a list of tuples (host, service) of services that are still alive
    :param conn: Database connection
    :return: List of tuples
    """
    result = conn.execute(
        'SELECT hostname, service_name FROM t_hosts WHERE beat >= UTC_TIMESTAMP() - INTERVAL 2 MINUTE'
    )
    services = []
    for row in result.fetchall():
        services.append((row['hostname'], row['service_name']))
    return services