Update messages list and content when the db changes. Issue: #370