
  CREATE TABLE ippToPspsFake       ( my_id INT  );
  CREATE TABLE skycell             ( tess_id CHAR(64), skycell_id CHAR(64), radeg REAL, decdeg REAL );
  CREATE TABLE rawExp              ( exp_id INT, exp_name CHAR(64), exp_time REAL, filter CHAR(64), bg REAL, bg_stdev REAL, ra FLOAT, decl FLOAT, dateobs DATETIME );
  CREATE TABLE chipRun             ( exp_id INT, chip_id INT );
  CREATE TABLE camRun              ( chip_id INT, cam_id INT, dist_group CHAR(64), software_ver CHAR(16) );
  CREATE TABLE camProcessedExp     ( cam_id INT, fault INT, path_base CHAR(255) );
  CREATE TABLE fakeRun             ( fake_id INT, cam_id INT );

  CREATE TABLE warpRun             ( warp_id INT, fake_id INT, tess_id CHAR(64), state CHAR(16) );
  CREATE TABLE warpSkyCellMap      ( warp_id INT, skycell_id CHAR(64), class_id CHAR(64) );
  CREATE TABLE warpImfile          ( warp_id INT, skycell_id CHAR(64), warp_skyfile_id INT );

  CREATE TABLE stackRun            ( stack_id INT, skycell_id CHAR(64), filter CHAR(64), software_ver CHAR(16) );
  CREATE TABLE stackInputSkyfile   ( stack_id INT, warp_id INT );
  CREATE TABLE stackSumSkyfile     ( stack_id INT, mjd_obs DOUBLE );

  CREATE TABLE skycalRun           ( sky_id INT, skycal_id INT, stack_id INT );
  CREATE TABLE skycalResult        ( skycal_id INT, path_base CHAR(255));

  CREATE TABLE diffRun             ( diff_id INT, tess_id CHAR(64), state CHAR(16), diff_mode INT, software_ver CHAR(16) );
  CREATE TABLE diffInputSkyfile    ( diff_id INT, warp1 INT, stack2 INT, diff_skyfile_id INT, tess_id CHAR(64), skycell_id CHAR(64) );
  CREATE TABLE diffSkyfile         ( diff_id INT, skycell_id CHAR(64), path_base CHAR(255) );

  CREATE TABLE addRun              ( add_id INT, stage CHAR(64), stage_extra1 INT, state CHAR(64), stage_id INT, minidvodb_name CHAR(64) );
  CREATE TABLE addProcessedExp     ( add_id INT, fault INT );
  CREATE TABLE minidvodbRun        ( minidvodb_id INT, minidvodb_name CHAR(64), state CHAR(64) );
  CREATE TABLE minidvodbProcessed  ( minidvodb_id INT, fault INT );
  CREATE TABLE mergedvodbRun       ( minidvodb_id INT, merge_id INT, state CHAR(64), mergedvodb CHAR(64) );
  CREATE TABLE mergedvodbProcessed ( merge_id INT, fault INT );
  CREATE TABLE fullForceInput      ( ff_id INT, warp_id INT);
  CREATE TABLE fullForceRun        ( ff_id INT, skycal_id INT);
  CREATE TABLE fullForceResult     ( ff_id INT, warp_id INT, software_ver INT, path_base CHAR(64));
