refactor the name of PQ to Pq to follow Rails conventions