convert old data to mongodb