anchor.diff:      gen_server:call(?MODULE, update_routing_table).
   
   %%--------------------------------------------------------------------
  +%% Function: reshard/1
  +%% Description: Currently sets up validation filters for resharding the Db
  +%% Returns: The new dict
  +%%--------------------------------------------------------------------
  +reshard(Db) ->
  +    gen_server:call(?MODULE, {reshard, Db}).
  +
  +%%--------------------------------------------------------------------
   %% Function: fill_routing_table/1
   %% Description: Creates and fills the routing table
   %% Returns: The new dict
   %%--------------------------------------------------------------------
   fill_routing_table() ->
  -    Dict1 = dict:store(1, "http://localhost:5985/", dict:new()),
  -    Dict2 = dict:store(2, "http://localhost:5986/", Dict1),
  -    dict:store(3, "http://localhost:5987/", Dict2).
  +%    Dict1 = dict:store(1, "http://localhost:5988/", dict:new()),
  +%    dict:store(2, "http://localhost:5989/", Dict1).
  +    dict:store(1, "http://localhost:5984/", dict:new()).
   
   %%--------------------------------------------------------------------
   %% Function: handle_call/3
  
positive.code: %% Returns: The new Dict
  %%--------------------------------------------------------------------
  hash(Db, Id) ->
      Hash = lists:sum(Id) rem 3 + 1,
      case Db of
          "userprofiles" -> Hash;
          _Other -> 1
      end.
  
  %%--------------------------------------------------------------------
  %% Function: get/2
  %% Description: Retrieves the requested Value from Dict
  
negative.code: %% Returns: {ok, Pid}
  %%--------------------------------------------------------------------
  start_link() ->
      application:start(ibrowse),
      gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
  
  
  