implement the script which auto matically updates the data hourly