The party faces a battle for its future after the midterms, but Democrats may ultimately determine whether it recovers.