A few database fixes. Mea culpa, I've committed broken code. I will
endeavour not to do this again. In fact, it's probably a good reason to
create unit tests that recreate the database, log people in, create
games and play them. For now, though, I guess I'll just try to ensure I
do that manually before commit.