added index for tables