Change for loop to foreach

Can you replace
```
$column_list[$key]
```
with:
```
$value
```
as well as on line 99 and 100.

Thanks!