add saving text to mongodb