Combined changes

    - Refactor internal namespaces
    - Add output capability to internal components
    - Confirm bad-sql handling with bad migration (disabled)
    - Refactor DSN handling into separate util class