fixed error in cron job to clean email dbs