Refactor view methods of CouchDatabase into own partial class