fix debugdatabase so that it doesn't die on weird keys

(holdover artifact from when it was part of debugtoolbar)
but since we're printing to console, no need to do weird conversions