zshdb: modernize + test