Also, there was another study where they found that treatments for depression actually increased serum magnesium levels in the brain.
EDIT: Here is the study: https://www.ncbi.nlm.nih.gov/books/NBK507265/# "A dietary supplement of 500mg calcium immediately and severely worsened MD, which was extinguishable within one hour by orally treating with 400mg gel capsules of Mg as magnesium glycinate "