Also store data in mongodb.