wip on api -> cdb results

the util and sql aren't needed with this pr. all sql/url handling is in forma/api/counts module.