terminal client now uses db; no client tests; done limited manual testing