How did the rise of Napoleon contibute to the rise of democracy?