Update indexquery for JC.sql