Mass renamed num_params to nParams. changed tempalte query_rowid to qreq_