Treating depression in the short term with medications is very effective. However, drugs are not a substitute for stress management. Many patients are so beaten up by their pain, they cannot move forward without meds. Make sure you know whether the medication you are taking for depression is meant to induce sleep or primarily meant to treat your depression and thereby indirectly improve your sleep. Some of these medications induce drowsiness. Others will stimulate you.
BF