updated DataArchiever.java to use mongodb