Changing the wuery string to retrive Model