insert and get message in mongodb