added schema parameters and query execution with parameters