Your sentence about A daughter (your daughter, I suppose) buying a dress (new, I suppose) needs a bit of correcting. You went to A shop (not THE shop, unless in your town there is only ONE shop) for a reason, therefore the tense of your second verb should be also past tense. The tenses of the two verbs need to be synchronized.
When you use SO THAT in a sentence to explain something you usually use CAN in the explanation or some other modal verb. When you use SO THAT with a main verb in the past you need to use COULD (which is the past form of CAN) together with your second verb.
I read a book yesterday so that I COULD learn about homeopathic remedies for anxiety.
We went to a shop so that my daughter COULD buy a (new?) dress.
In your first sentence you explain something as well. In that sentence the tense of the main verb is present progressive. Therefore you need to use CAN in your explanation. Had it been past tense you would need to use COULD.
They are building a house SO THAT people can live THERE (not HERE, unless you are speaking from inside the house that is under construction).
In the past:
They BUILT a house SO THAT people COULD live there.
In your second sentence the tense of the main verb is Future. Therefore, the tense of your second verb should be Future as well.
I will call you so that you won't (will not) forget.
In the past:
I CALLED you so that you WOULDN'T forget.
In your last sentence, the main verb is in the present and the second one is a modal verb in the past. You need to change the tense of your main verb to match the tense of the second verb.
I DREAMED that everything would be fine.