Move TupleIndexWrapper to TDB