I HATE people who put IANAL and other acronym disclaimers everywhere, but I just feel these type of posts can negatively influence people.
I am glad magnesium and vitamin D worked for you, but some people may need prescription medications from a psychiatrist.
I am not a psychiatrist, but if you think it will help I did study nutrition in a formal capacity for four years and obtain a certificate of some sort for doing so.