refinement of the restart

sets up a check if db is installed but the data was wiped to force an
uninstall since it would register as being installed which kills the
whole process