Fixed queries with cost and pay_rate
Merge branch 'master' of https://github.com/j-dasilva/cms