scanselect and indexselect

waiting on insert to test