Manage fields in metadata document (adding or deleting fields dinamically)