Use reference counting for DBResult