The rights afforded by the Fifth Amendment, including the right to not be compelled to testify against oneself, expressly apply to criminal matters. There is no such protection in civil, or non-criminal matters.
In fact you are wrong. The 5th amendment applies to all and any court proceedings, affidavits, discovery motions, anything that might lead to uncovering something that MIGHT be used in a criminal case.
If you were driving down the street with a carload of stolen stuff, and you went off the road and hit a fence, you could immediately shut your mouth and demand an attorney, even if all that was going on was the fence owner wanted you to get his fence repainted.
So, in a civil or non-criminal matter can a person can be forced to say something that can and will be used against him in a separate and criminal matter or can what the person is forced to say not be used against him in a separate and criminal matter?