Updating countpr SQLQuery