changed getItemSQL querry