Refactored dbwrapper.java - Replacing function setRegimenTemplateConfiguredForAllPrograms with generic function updateFieldValue