moving messages over to mongodb