Revert "correct the non working of th DB if no existing one"

This reverts commit 71def19635b16e90a4624f05bfe55779fddc0e1d.