convert DailyFormStats report to SQL

depends on https://github.com/dimagi/commcare-hq/pull/2887