closing db in cb