Closing db.