tried closing db threads