Adding index to table