reset handle after closing db handle