needed to change an sql statement for candlepin pool table changes