Closing db connection