added Method from DocumentDatabase to its interface
Created interface for typed ViewResult