aggregation db instructions and cron script