corrected cron job's delete sql