Update GetRatiosForAgent.sql

Refactor to take advantage of Data table updates