fixing broken meta-analysis

Turns out that meta-analysis assumed that the raw-data and the prep-template had the same id, which is not the case in a real system. This fix that.