Some fixes and cleanup

Mostly I made some changes because MySQL 5.6 strict mode was aggressive about the non-defaulted time fields (i.e. the tables would not create). While I was in there I cleaned up some mixed comments and other minor things.