Index: trunk/cgi-bin/IPDB.pm
===================================================================
--- trunk/cgi-bin/IPDB.pm	(revision 183)
+++ trunk/cgi-bin/IPDB.pm	(revision 184)
@@ -156,5 +156,5 @@
   } else {
     # it connects, try a stmt.
-    my $sth = $dbh->prepare("select cidr from masterblocks");
+    my $sth = $dbh->prepare("select type from alloctypes");
     my $err = $sth->execute();
 
Index: trunk/cgi-bin/main.cgi
===================================================================
--- trunk/cgi-bin/main.cgi	(revision 183)
+++ trunk/cgi-bin/main.cgi	(revision 184)
@@ -39,7 +39,6 @@
 ($ip_dbh,$errstr) = connectDB_My;
 if (!$ip_dbh) {
-  printAndExit("Failed to connect to database: $errstr\n");
-}
-checkDBSanity($ip_dbh);
+  printAndExit("Database error: $errstr\n");
+}
 initIPDBGlobals($ip_dbh);
 
