1f0c4729631c381a8c582980909f205688f81643
hiram
  Wed Feb 8 10:22:17 2012 -0800
hDbExists is not the function to use to see if a Db exists, that is only for hgcentral
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 942d4ca..2c7bf8b 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -3454,31 +3454,31 @@
 	    }
         errCatchEnd(errCatch);
         if (errCatch->gotError)
 	    hubUpdateStatus( errCatch->message->string, hub);
 	else
 	    hubUpdateStatus(NULL, hub);
         errCatchFree(&errCatch);
 	}
     }
 hubConnectStatusFreeList(&hubList);
 }
 
 boolean restrictionEnzymesOk()
 /* Check to see if it's OK to do restriction enzymes. */
 {
-return (hDbExists("hgFixed") && hTableExists("hgFixed", "cutters") &&
+return (sqlDatabaseExists("hgFixed") && hTableExists("hgFixed", "cutters") &&
     hTableExists("hgFixed", "rebaseRefs") &&
     hTableExists("hgFixed", "rebaseCompanies"));
 }
 
 static void fr2ScaffoldEnsemblLink(char *archive, struct hotLink **links)
 /* print out Ensembl link to appropriate scaffold there */
 {
 struct sqlConnection *conn = hAllocConn(database);
 struct sqlResult *sr = NULL;
 char **row = NULL;
 char query[256];
 safef(query, sizeof(query),
 "select * from chrUn_gold where chrom = '%s' and chromStart<%u and chromEnd>%u",
 chromName, winEnd, winStart);
 sr = sqlGetResult(conn, query);