Removed debugging printing of query