update documents.php