Store messages into mongo