Finishes the Connect and Close func in DbOptr.