Create script to update documents