add Registry
enhance the db adapter factory
enhance db adapter factory