There are people that need to be in treatment against their will. This sounds like a horrible experience you went through but personally I do think there are some required exceptions to civil liberties. But as your case may highlight it would seem it needs a lot more oversight.