Update DocumentsController.php

Changed the way that documents are retrieved.