add tx_index to schema