Save the new values to the database.