Cron made more stable (insert in db only if quote does not exist)