Use a Write (Value library) block as an interface between the Database and the Optimizer (Value library). Follow these steps:
When the Optimizer changes the variables, they will automatically be changed in the Database.