Disentangle adding team.externalid in 64225be5 from
big identifier changes earlier.
Add judgehost user to SQL upgrade file.
Select judgehost user on username.
Ignore relations.php which is now autogenerated.