db object/factory in registry instead of settings
Merge pull request #74 from kusut/database

db object/factory in registry instead of settings