add index to tables