because generalcomment and teachercomment were not null and didn't have defaults. for some reason mysql allows this but postgres complains. I've set empty string defaults and added into mysql for consistency.
various improvements.