query changed to work with the index
Merge branch 'SqlOptimise_new_index_merged_branch' of https://github.com/nadeeshaan/JGSoC-SQL-Optimisation into SqlOptimise_new_index_merged_branch