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