Update existing document if it already exists