update messages model