db object/factory in registry instead of settings