updated cron queries to shorten sql queries
samezies