Fix some DB errors I am responsible for.

Grr, I was going to script these but found was already scripted, but I left the ids in the line to set ai name in the commit I did make

Closes #12912