I feel like this could easily be read as "software engineer finds placebo sleeping pills".
You very well could be right, but those sources are not scientific. If you want to show me that magnesium helps people sleep, show me a PubMed article on the subject.