Puoi utilizzare un crontab che ogni tot tempo avvia uno script che controlla le date nel db.