Sorry, that was a bit sarcastic. Obviously, the market is not a form of direct democracy. It's a form of resource allocation. And a pretty stupid one, where everything is allocated by short-sighted impulse decisions and without any consideration of emergent phenomena.
There are tons of scenarios where the free market simply does not have any solution at all. See the tragedy of the commons or of externalizing cost. Nothing in the free market will ever be able to address these issues. Even the often quoted and constantly misunderstood 'invisible hand' of the market is not some kind of mythical or emergent phenomena of the free market itself; it's the moral and social considerations of the actors themselves that make up the 'invisible hand'.
Pretty stoopid.