fix query counting, which broke parallel tests (but only for MySQL (?!))