Update data base with a due date

Hi, I want to update my database with the last due date in my bpmn each time I start the process in my camunda engine


any ideas plz?