Updated Portal.dll with the latest containing XDocument binding
Added (old indexing) to metadata set
Added error handling on metadata set result from database