parse file and add to mongodb