fix possiblecrashes when the household_database partis not built
cleanup CMake