Updates DB and Connection factories to check global configuration for various settings
Typos and type hinting fixes
Add config example