Here's a grand unifying theory of Democratic victories ⁠— according to history