abstract registry fully. only remove db if temporary config