Add an option to add default values on update of attributes or geometry. This can be seen as a "derived value" that will be saved to the database (like area of a polygon) or as a means to track last_modified dates etc. See #5218