Save messages in mongoDb