Added $options argument to Database::retrieveDocument()