Index: trunk/ippdb/tests/dbsetup.c
===================================================================
--- trunk/ippdb/tests/dbsetup.c	(revision 15420)
+++ trunk/ippdb/tests/dbsetup.c	(revision 15421)
@@ -13,4 +13,7 @@
 
     // remove the table if it already exists
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS pzDataStore");
+    pzDataStoreCreateTable(dbh);
+
     p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS summitExp");
     summitExpCreateTable(dbh);
@@ -48,7 +51,4 @@
     p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS chipRun");
     chipRunCreateTable(dbh);
-
-    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS chipInputImfile");
-    chipInputImfileCreateTable(dbh);
 
     p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS chipProcessedImfile");
@@ -130,4 +130,31 @@
     detRunSummaryCreateTable(dbh);
 
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS detRegisteredImfile");
+    detRegisteredImfileCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS detCorrectedExp");
+    detCorrectedExpCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS detCorrectedImfile");
+    detCorrectedImfileCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicRun");
+    magicRunCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicInputSkyfile");
+    magicInputSkyfileCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicTree");
+    magicTreeCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicNodeResult");
+    magicNodeResultCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicMask");
+    magicMaskCreateTable(dbh);
+
+    p_psDBRunQuery(dbh, "DROP TABLE IF EXISTS magicSkyfileMask");
+    magicSkyfileMaskCreateTable(dbh);
+
     psDBCleanup(dbh);
 
