finished the processing of the stage file with indexing and migration od final datafile[need to be tested]

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>