Added library framework to calculate DB Index