Update cron script with new schema