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