Added tweak to preserve DISPLAY var when loading xterm and suppressed some errors on accessing a read-only testdat.db