Changed triggers to cron triggers to fire every hour.

Fixed a bug in data aggregation.