Change to couch_server:exists/1
diff --git a/src/smoosh/src/smoosh_channel.erl b/src/smoosh/src/smoosh_channel.erl
index b5ef19d..74395b0 100644
--- a/src/smoosh/src/smoosh_channel.erl
+++ b/src/smoosh/src/smoosh_channel.erl
@@ -240,7 +240,7 @@
     RecActive = recover(active_file_name(Name)),
     Waiting1 = lists:foldl(
         fun(DbName, Acc) ->
-            case exists(DbName) andalso couch_db:is_compacting(DbName) of
+            case couch_server:exists(DbName) andalso couch_db:is_compacting(DbName) of
                 true ->
                     Priority = smoosh_server:get_priority(Name, DbName),
                     smoosh_priority_queue:in(DbName, Priority, Priority, Acc);
@@ -371,7 +371,7 @@
     RecStarting = recover(starting_file_name(Name)),
     Starting = lists:foldl(
         fun(DbName, Acc) ->
-            case exists(DbName) of
+            case couch_server:exists(DbName) of
                 true ->
                     Priority = smoosh_server:get_priority(Name, DbName),
                     smoosh_priority_queue:in(DbName, Priority, Priority, Acc);
@@ -386,7 +386,7 @@
     Requests1 = lists:reverse(Requests0),
     Waiting2 = lists:foldl(
         fun({DbName, Priority}, Acc) ->
-            case exists(DbName) of
+            case couch_server:exists(DbName) of
                 true ->
                     smoosh_priority_queue:in(DbName, Priority, Priority, Acc);
                 false ->
@@ -547,7 +547,3 @@
         _ ->
             ok
     end.
-
-exists(Name) ->
-    FilePath = filename:join(config:get("couchdb", "database_dir", "."), Name),
-    filelib:is_regular(FilePath).