add index for tables