anchor.diff:      open_db(Server, DbName, []).
   
   %% @doc Create a client for connection to a database
  -%% @spec open_db(server(), string(), list()) -> db() 
  +%% @spec open_db(server(), string(), list()) -> {ok, db()}
   open_db(Server, DbName, Options) ->
       {ok, #db{server=Server, name=DbName, options=Options}}.
       
  
positive.code:           Error
      end.
  
  open_doc(Db, DocId) ->
      open_doc(Db, DocId, []).
  open_doc(#db{server=Server, options=IbrowseOpts}=Db, DocId, Params) ->
      DocId1 = couchbeam_util:encode_docid(DocId), 
      Url = make_url(Server, doc_url(Db, DocId1), Params),
  
negative.code:     delete_db(Server, DbName).
  
  %% @doc delete database 
  %% @spec delete_db(server(), DbName) -> {ok, iolist()|{error, Error}}
  delete_db(#server{options=IbrowseOpts}=Server, DbName) ->
      Url = make_url(Server, DbName, []),
      case request(delete, Url, ["200"], IbrowseOpts) of
  