Update postgres postpaid to use the new query format