change way we manipulate columns, so that we don't duplicate message ids