Add columns to flat table