Democracy and capitalist revolution