Democracy and shared prosperity