Ok, I fixed the SQL DB by doing it manually, but now I see..
Error Line 6: Unknown column 'channel' in 'where clause'
In many a place.