added sql view for portfolios detail to support json serialization through unmanaged model