added index to loadTableId