How do you upgraded your raw or dng in lightroom 5, Where does it go.?
Not sure exactly what you mean? Are you inquiring about what happens when you upgrade from an earlier version of LR to version 5?
Maybe the link below can provide some answers.
How To Upgrade To Adobe Photoshop Lightroom 5
Retrieving data ...