The Democracy Matrix