Update db model to use index