fix a few bugs and visual quirks in oasisdb tool