removing connect module
closing db