This is referred to as a Cron Job:
introducing-cron
a cron job will run at a set time and can be used to update your database. Simple is a relive term with cron jobs, first your host must support them and you need to be comfortable writing the script.