More issues

Still more random sql errors. I am trying to fix this because it isn't
demoable. I don't understand why it just appeared. Nothing major has
changed.