DB/Misc: Fix logic fail in f23069e324facd36325e02b92102a571556c4db2