First and foremost, I would like to state that dream interpretation is not fully scientific. Although it is stated that there is a co-relation between dream and our sub-conscious mind, but it has not been definitely established.
In the present case, I feel that you ha been thinking about the death of that girl, so the funeral came to your mind. At the same time, Lord Ganesha gives us 'riddhi' and 'siddhi'. So, Lord Ganesha came to your dream. I can't comment upon the connection between these two events.
However, I would advise you not to think about dreams too much. Start taking light and less spicy food at night and go for an after-dinner walk before hitting the bed.
Beware! I question everything and everybody.