minor refactor live-db