updated get_extreme_connections.r based on recent database/repository changes