add index to schema