#22 - add query override since PGSQL doesn't have the trunc() function for dates