Hello Friend, Good that you are seeking a help. You are right. Depression happens when you think too much about past. As body and mind are interlinked, depression will cause disturbance in body by introducing headaches, sleeplessness, dullness, loss of interest etc. Solution for this problem is by controlling those past thoughts. If you can practice and control yourself, it's good. If not take some professional help from people like us.
Health Tips
Do some brisk exercises be energetic . Practice meditation to control your thoughts.