writing transcription to mongodb