Two SQL fixes: typo in testcase table name and set configid to
unsigned (was already fixed in SQL upgrade script).
dupe
Fix some more issues with SQL upgrade script:
- constraints on event table are only introduced later, so don't
  try to remove/add them.
- replace team login -> ID comment.
- unset defaults on teamid and mesgid in team_unread table.
Also convert old team logins to ID's when team.login column is present.
Fix config check: timestamps are already in Unix Epoch.
Fix HTML error: close a tag only if opened.