Update xml file to create the database option fields

How can I get the default_value for a field (in this case the sensorid field) to display the current pfsense hostname?
It would be really cool to modify the Access BandwidhtD tab so that if the database option is enabled, it targets the host server url.