Cron job connected with DB