fixed CLI "hang forever" bug when running a command against an uninitialized database