Added macro to disable tracedb, and fixed bugs in string converting code.