refactored model updates (PUT), delete values on empty string