anchor.diff:  
   reduce_view(DbName, Group0, ViewName, QueryArgs) ->
       erlang:put(io_priority, {interactive, DbName}),
  -    {ok, Db} = couch_db:open_int(DbName, []),
  +    {ok, Db} = get_or_create_db(DbName, []),
       #view_query_args{
           group_level = GroupLevel,
           limit = Limit,
  
positive.code:     end.
  
  map_view(DbName, DDoc, ViewName, QueryArgs) ->
      {ok, Db} = couch_db:open_int(DbName, []),
      #view_query_args{
          limit = Limit,
          skip = Skip,
  
negative.code:         end);
      Error ->
          rexi:reply(Error)
      end.
  
  get_or_create_db(DbName, Options) ->
      case couch_db:open_int(DbName, Options) of
      {not_found, no_db_file} ->
          twig:log(warn, "~p creating ~s", [?MODULE, DbName]),
          couch_server:create(DbName, Options);
      Else ->
          Else
      end.
  
  view_fold(#full_doc_info{} = FullDocInfo, OffsetReds, Acc) ->
  