It seems that in a lot of cases of "unhelpful medical treatments" is a result of doctors forgetting the basics. If the doctor overlooks basics like lifestyle factors, electrolytes, vitamin deficiencies etc. then medications are of limited help in treating conditions like depression.