use arel for date comparison so works across sqlite and mysql
Merge pull request #549 from theodi/certificate-counts

stats page last-month