How to update a dataset at a set time.

Sorry to bother. I have set up the Job Scheduler command. Just wondering if there is a specific function that I need to use for the database. I take it I would need to write some code in a .jws file. If so, what function would I need to write.