db index fix