I presume unsetting the var and hence object deconstructor invocation takes of disconnecting from db?