Update document value