successfully writes incoming stream to mongoDB