anchor.diff:      end.
   
   load_user_from_db(UserName) ->
  -    DbName = couch_config:get("chttpd_auth", "authentication_db"),
  -    {ok, Db} = ensure_users_db_exists(?l2b(DbName)),
  -    UserProps = case couch_db:open_doc(Db, UserName, []) of
  +    DbName = couch_config:get("chttpd_auth", "authentication_db", "users"),
  +    try fabric:open_doc(DbName, UserName, []) of
       {ok, Doc} ->
           ?LOG_INFO("cache miss on username ~s", [UserName]),
           {Props} = couch_doc:to_json_obj(Doc, []),
  
positive.code:                 {<<"username">>, UserName}
              ]}
          },
          {ok, _Rev} = couch_db:update_doc(Db, UserDoc, []),
          ?LOG_DEBUG("User ~s updated.", [UserName]),
          send_response(Req)
      end.
  
negative.code:                 {<<"username">>, UserName}
              ]}
          },
          {ok, _Rev} = fabric:update_doc(Db, UserDoc, []),
          ?LOG_DEBUG("User ~s (~s) with password, ~s created.", [UserName,
              UserName, Password]),
          send_response(Req);
  