remove db from IndexDetails and put it in IndexDetailsBase