Fixed config namespase, and checking defined db name.