Added the Cron DB functions