Write data table with 2 columns by foreach