Fixing another db switch() statement

Missed a switch statement in previous commit.