updating messages model to add extra data