fixes #1917.  Say it ain't so, Joe.

I'm leaving this commit message obtuse also because it's fun to
figure out what this change fixes a db integrity bug.
missed one spot
Merge pull request #1963 from Stanford-Online/jbau-db-integrity-fix

Jbau db integrity fix