Tar to Mongo script