adds delta index and changes indexawarescan to use delta index instead of tablescan