cron and sql update