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