Index: trunk/ippToPsps/config/stack/tables.xml
===================================================================
--- trunk/ippToPsps/config/stack/tables.xml	(revision 29106)
+++ trunk/ippToPsps/config/stack/tables.xml	(revision 29164)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<tableDescriptions type="ST">
+<tableDescriptions type="stack">
   <table name="StackMeta">
     <column name="stackMetaID" type="TLONGLONG" default="0" comment="stack identifier"></column>
@@ -30,27 +30,29 @@
     <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column>
     <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column>
-    <column name="crval1" type="TFLOAT" default="-999" comment="RA corresponding to reference pixel"></column>
-    <column name="crval2" type="TFLOAT" default="-999" comment="DEC corresponding to reference pixel"></column>
-    <column name="crpix1" type="TFLOAT" default="-999" comment="reference pixel value for RA"></column>
-    <column name="crpix2" type="TFLOAT" default="-999" comment="reference pixel value for DEC"></column>
-    <column name="pc001001" type="TFLOAT" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc001002" type="TFLOAT" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002001" type="TFLOAT" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002002" type="TFLOAT" default="-999" comment="elements of rotation/Dcale matrix"></column>
+    <column name="crval1" type="TDOUBLE" default="-999" comment="RA corresponding to reference pixel"></column>
+    <column name="crval2" type="TDOUBLE" default="-999" comment="DEC corresponding to reference pixel"></column>
+    <column name="crpix1" type="TDOUBLE" default="-999" comment="reference pixel value for RA"></column>
+    <column name="crpix2" type="TDOUBLE" default="-999" comment="reference pixel value for DEC"></column>
+    <column name="cdelt1" type="TDOUBLE" default="-999" comment="scale factor for RA"></column>
+    <column name="cdelt2" type="TDOUBLE" default="-999" comment="scale factor for DEC"></column>
+    <column name="pc001001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
+    <column name="pc001002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
+    <column name="pc002001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
+    <column name="pc002002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
     <column name="polyOrder" type="TBYTE" default="255" comment="polynomial order of astrometry fit"></column>
-    <column name="pca1x3y0" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y1" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y2" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y3" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y0" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y1" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y2" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x3y0" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y1" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y2" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y3" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y0" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y1" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y2" type="TFLOAT" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca1x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
+    <column name="pca2x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
     <column name="calibModNum" type="TSHORT" default="0" comment="calibration modification number"></column>
     <column name="dataRelease" type="TBYTE" default="0" comment="Data release"></column>
@@ -69,5 +71,5 @@
     <column name="projectionCellID" type="TLONG" default="-999" comment="projection cell identifier"></column>
     <column name="stackVer" type="TSHORT" default="-999" comment="version number of this stack"></column>
-    <column name="obsTime" type="TFLOAT" default="-999" comment=" Time of mid observation (unit = day)"></column>
+    <column name="obsTime" type="TDOUBLE" default="-999" comment=" Time of mid observation (unit = day)"></column>
     <column name="xPos" type="TFLOAT" default="-999" comment="measured x on CCD from PSF fit"></column>
     <column name="yPos" type="TFLOAT" default="-999" comment="measured y on CCD from PSF fit"></column>
@@ -103,62 +105,283 @@
     <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this detection was originally taken."></column>
   </table>
-  <table name="SkinnyObject">
-    <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier index"></column>
-    <column name="ippObjID" type="TLONGLONG" default="0" comment="IPP object number"></column>
-    <column name="projectionCellID" type="TLONG" default="-999" comment="projection cell identifier at discovery time"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release to propagate to the object"></column>
-  </table>
-  <table name="StackOrphan">
-    <column name="partitionKey" type="TLONGLONG" default="0" comment="partitioning key"></column>
-    <column name="stackDetectID" type="TLONGLONG" default="0" comment="detection identifier"></column>
+  <table name="StackApFlx">
+    <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier"></column>
+    <column name="stackDetectID" type="TLONGLONG" default="0" comment="ODM detection identifier"></column>
+    <column name="ippObjID" type="TLONGLONG" default="0" comment="IPP object identifier"></column>
     <column name="ippDetectID" type="TLONGLONG" default="0" comment="detection ID generated by IPP"></column>
     <column name="filterID" type="TBYTE" default="0" comment="filter identifier"></column>
     <column name="stackTypeID" type="TBYTE" default="0" comment="stack type identifier"></column>
-    <column name="surveyID" type="TBYTE" default="0" comment="survey identifier"></column>
+    <column name="surveyID" type="TBYTE" default="0" comment="survey flag identifier"></column>
     <column name="primaryF" type="TBYTE" default="255" comment="identifies best stack detection for Stacks overlapping the same region of the sky."></column>
     <column name="stackMetaID" type="TLONGLONG" default="0" comment="stack identifier"></column>
-    <column name="skyCellID" type="TLONG" default="-999" comment="skycell identifier"></column>
-    <column name="stackVer" type="TSHORT" default="-999" comment="version number of this stack"></column>
-    <column name="xPos" type="TFLOAT" default="-999" comment="measured x on CCD from PSF fit"></column>
-    <column name="yPos" type="TFLOAT" default="-999" comment="measured y on CCD from PSF fit"></column>
-    <column name="xPosErr" type="TFLOAT" default="-999" comment="estimated error in x"></column>
-    <column name="yPosErr" type="TFLOAT" default="-999" comment="estimated error in y"></column>
-    <column name="instFlux" type="TFLOAT" default="-999" comment="PSF instrumental flux"></column>
-    <column name="instFluxErr" type="TFLOAT" default="-999" comment="estimated error in instrumental flux"></column>
-    <column name="peakFlux" type="TFLOAT" default="-999" comment="ratio of peak flux to total flux"></column>
-    <column name="sky" type="TFLOAT" default="-999" comment="PSF sky level at source (adu)"></column>
-    <column name="skyErr" type="TFLOAT" default="-999" comment="estimated error in sky"></column>
-    <column name="sgSep" type="TFLOAT" default="-999" comment="star/galaxy separator"></column>
-    <column name="psfWidMajor" type="TFLOAT" default="-999" comment="PSF width in major axis"></column>
-    <column name="psfWidMinor" type="TFLOAT" default="-999" comment="PSF width in minor axis"></column>
-    <column name="psfTheta" type="TFLOAT" default="-999" comment="PSF orientation angle"></column>
-    <column name="psfLikelihood" type="TFLOAT" default="-999" comment="PSF likelihood"></column>
-    <column name="psfCf" type="TFLOAT" default="-999" comment="PSF coverage factor"></column>
-    <column name="infoFlag" type="TLONG" default="-999" comment="indicator of strange propeties"></column>
-    <column name="nFrames" type="TLONG" default="-999" comment="number of frames contributing to source"></column>
-    <column name="wlSigma" type="TFLOAT" default="-999" comment="weak lensing sigma"></column>
-    <column name="eps1" type="TFLOAT" default="-999" comment="weak lensing vector element eps(1)"></column>
-    <column name="eps2" type="TFLOAT" default="-999" comment="weak lensing vector element eps(2)"></column>
-    <column name="Psm11" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sm(1,1)"></column>
-    <column name="Psm12" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sm(1,2)"></column>
-    <column name="Psm21" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sm(2,1)"></column>
-    <column name="Psm22" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sm(2,2)"></column>
-    <column name="Psh11" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sh(1,1)"></column>
-    <column name="Psh12" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sh(1,2)"></column>
-    <column name="Psh21" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sh(2,1)"></column>
-    <column name="Psh22" type="TFLOAT" default="-999" comment="weak lensing matrix element P_sh(2,2)"></column>
+    <column name="isophotMag" type="TFLOAT" default="-999" comment="isophotal magnitude"></column>
+    <column name="isophotMagErr" type="TFLOAT" default="-999" comment="estimated error in isophotal magnitude"></column>
+    <column name="isophotMajAxis" type="TFLOAT" default="-999" comment="isophotal Major Axis"></column>
+    <column name="isophotMajAxisErr" type="TFLOAT" default="-999" comment="estimated error in isophotal Major Axis"></column>
+    <column name="isophotMinAxis" type="TFLOAT" default="-999" comment="isophotal Minor Axis"></column>
+    <column name="isophotMinAxisErr" type="TFLOAT" default="-999" comment="estimated error in isophotal Minor Axis"></column>
+    <column name="isophotMajAxisGrad" type="TFLOAT" default="-999" comment="isophotal major axis gradient"></column>
+    <column name="isophotMinAxisGrad" type="TFLOAT" default="-999" comment="isophotal minor axis gradient"></column>
+    <column name="isophotPA" type="TFLOAT" default="-999" comment="isophotal position angle"></column>
+    <column name="isophotPAErr" type="TFLOAT" default="-999" comment="estimated error in isophotal position angle"></column>
+    <column name="isophotPAGrad" type="TFLOAT" default="-999" comment="isophotal position angle gradient"></column>
+    <column name="petRadius" type="TFLOAT" default="-999" comment="Petrosian radius"></column>
+    <column name="petRadiusErr" type="TFLOAT" default="-999" comment="estimated error inPetrosian radius"></column>
+    <column name="petMag" type="TFLOAT" default="-999" comment="Petrosian magntiude"></column>
+    <column name="petMagErr" type="TFLOAT" default="-999" comment="estimated error in petMag"></column>
+    <column name="petR50" type="TFLOAT" default="-999" comment="Petrosian radius at 50% light"></column>
+    <column name="petR50Err" type="TFLOAT" default="-999" comment="estimated error inPetrosian radius at 50% light"></column>
+    <column name="petR90" type="TFLOAT" default="-999" comment="Petrosian radius at 90% light"></column>
+    <column name="petR90Err" type="TFLOAT" default="-999" comment="estimated error in Petrosian radius at 90% light"></column>
+    <column name="petCf" type="TFLOAT" default="-999" comment="Petrosian fit coverage factor"></column>
+    <column name="flxR1" type="TFLOAT" default="-999" comment="Flux inside r = 1"></column>
+    <column name="flxR1Err" type="TFLOAT" default="-999" comment="estimated error is flxR1"></column>
+    <column name="flxR1Var" type="TFLOAT" default="-999" comment="estimated variance in flxR1"></column>
+    <column name="flxR2" type="TFLOAT" default="-999" comment="Flux inside r = 2"></column>
+    <column name="flxR2Err" type="TFLOAT" default="-999" comment="estimated error is flxR2"></column>
+    <column name="flxR2Var" type="TFLOAT" default="-999" comment="estimated variance in flxR2"></column>
+    <column name="flxR3" type="TFLOAT" default="-999" comment="Flux inside r = 3"></column>
+    <column name="flxR3Err" type="TFLOAT" default="-999" comment="estimated error is flxR3"></column>
+    <column name="flxR3Var" type="TFLOAT" default="-999" comment="estimated variance in flxR3"></column>
+    <column name="flxR4" type="TFLOAT" default="-999" comment="Flux inside r = 4"></column>
+    <column name="flxR4Err" type="TFLOAT" default="-999" comment="estimated error is flxR4"></column>
+    <column name="flxR4Var" type="TFLOAT" default="-999" comment="estimated variance in flxR4"></column>
+    <column name="flxR5" type="TFLOAT" default="-999" comment="Flux inside r = 5"></column>
+    <column name="flxR5Err" type="TFLOAT" default="-999" comment="estimated error is flxR5"></column>
+    <column name="flxR5Var" type="TFLOAT" default="-999" comment="estimated variance in flxR5"></column>
+    <column name="flxR6" type="TFLOAT" default="-999" comment="Flux inside r = 6"></column>
+    <column name="flxR6Err" type="TFLOAT" default="-999" comment="estimated error is flxR6"></column>
+    <column name="flxR6Var" type="TFLOAT" default="-999" comment="estimated variance in flxR6"></column>
+    <column name="flxR7" type="TFLOAT" default="-999" comment="Flux inside r = 7"></column>
+    <column name="flxR7Err" type="TFLOAT" default="-999" comment="estimated error is flxR7"></column>
+    <column name="flxR7Var" type="TFLOAT" default="-999" comment="estimated variance in flxR7"></column>
+    <column name="flxR8" type="TFLOAT" default="-999" comment="Flux inside r = 8"></column>
+    <column name="flxR8Err" type="TFLOAT" default="-999" comment="estimated error is flxR8"></column>
+    <column name="flxR8Var" type="TFLOAT" default="-999" comment="estimated variance in flxR8"></column>
+    <column name="flxR9" type="TFLOAT" default="-999" comment="Flux inside r = 9"></column>
+    <column name="flxR9Err" type="TFLOAT" default="-999" comment="estimated error is flxR9"></column>
+    <column name="flxR9Var" type="TFLOAT" default="-999" comment="estimated variance in flxR9"></column>
+    <column name="flxR10" type="TFLOAT" default="-999" comment="Flux inside r = 10"></column>
+    <column name="flxR10Err" type="TFLOAT" default="-999" comment="estimated error is flxR10"></column>
+    <column name="flxR10Var" type="TFLOAT" default="-999" comment="estimated variance in flxR10"></column>
+    <column name="c1FlxR1" type="TFLOAT" default="-999" comment="Flux inside r = 1"></column>
+    <column name="c1FlxR1Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR1"></column>
+    <column name="c1FlxR1Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR1"></column>
+    <column name="c1FlxR2" type="TFLOAT" default="-999" comment="Flux inside r = 2"></column>
+    <column name="c1FlxR2Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR2"></column>
+    <column name="c1FlxR2Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR2"></column>
+    <column name="c1FlxR3" type="TFLOAT" default="-999" comment="Flux inside r = 3"></column>
+    <column name="c1FlxR3Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR3"></column>
+    <column name="c1FlxR3Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR3"></column>
+    <column name="c1FlxR4" type="TFLOAT" default="-999" comment="Flux inside r = 4"></column>
+    <column name="c1FlxR4Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR4"></column>
+    <column name="c1FlxR4Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR4"></column>
+    <column name="c1FlxR5" type="TFLOAT" default="-999" comment="Flux inside r = 5"></column>
+    <column name="c1FlxR5Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR5"></column>
+    <column name="c1FlxR5Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR5"></column>
+    <column name="c1FlxR6" type="TFLOAT" default="-999" comment="Flux inside r = 6"></column>
+    <column name="c1FlxR6Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR6"></column>
+    <column name="c1FlxR6Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR6"></column>
+    <column name="c1FlxR7" type="TFLOAT" default="-999" comment="Flux inside r = 7"></column>
+    <column name="c1FlxR7Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR7"></column>
+    <column name="c1FlxR7Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR7"></column>
+    <column name="c1FlxR8" type="TFLOAT" default="-999" comment="Flux inside r = 8"></column>
+    <column name="c1FlxR8Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR8"></column>
+    <column name="c1FlxR8Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR8"></column>
+    <column name="c1FlxR9" type="TFLOAT" default="-999" comment="Flux inside r = 9"></column>
+    <column name="c1FlxR9Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR9"></column>
+    <column name="c1FlxR9Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR9"></column>
+    <column name="c1FlxR10" type="TFLOAT" default="-999" comment="Flux inside r = 10"></column>
+    <column name="c1FlxR10Err" type="TFLOAT" default="-999" comment="estimated error is c1FlxR10"></column>
+    <column name="c1FlxR10Var" type="TFLOAT" default="-999" comment="estimated variance in c1FlxR10"></column>
+    <column name="c2FlxR1" type="TFLOAT" default="-999" comment="Flux inside r = 1"></column>
+    <column name="c2FlxR1Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR1"></column>
+    <column name="c2FlxR1Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR1"></column>
+    <column name="c2FlxR2" type="TFLOAT" default="-999" comment="Flux inside r = 2"></column>
+    <column name="c2FlxR2Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR2"></column>
+    <column name="c2FlxR2Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR2"></column>
+    <column name="c2FlxR3" type="TFLOAT" default="-999" comment="Flux inside r = 3"></column>
+    <column name="c2FlxR3Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR3"></column>
+    <column name="c2FlxR3Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR3"></column>
+    <column name="c2FlxR4" type="TFLOAT" default="-999" comment="Flux inside r = 4"></column>
+    <column name="c2FlxR4Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR4"></column>
+    <column name="c2FlxR4Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR4"></column>
+    <column name="c2FlxR5" type="TFLOAT" default="-999" comment="Flux inside r = 5"></column>
+    <column name="c2FlxR5Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR5"></column>
+    <column name="c2FlxR5Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR5"></column>
+    <column name="c2FlxR6" type="TFLOAT" default="-999" comment="Flux inside r = 6"></column>
+    <column name="c2FlxR6Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR6"></column>
+    <column name="c2FlxR6Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR6"></column>
+    <column name="c2FlxR7" type="TFLOAT" default="-999" comment="Flux inside r = 7"></column>
+    <column name="c2FlxR7Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR7"></column>
+    <column name="c2FlxR7Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR7"></column>
+    <column name="c2FlxR8" type="TFLOAT" default="-999" comment="Flux inside r = 8"></column>
+    <column name="c2FlxR8Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR8"></column>
+    <column name="c2FlxR8Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR8"></column>
+    <column name="c2FlxR9" type="TFLOAT" default="-999" comment="Flux inside r = 9"></column>
+    <column name="c2FlxR9Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR9"></column>
+    <column name="c2FlxR9Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR9"></column>
+    <column name="c2FlxR10" type="TFLOAT" default="-999" comment="Flux inside r = 10"></column>
+    <column name="c2FlxR10Err" type="TFLOAT" default="-999" comment="estimated error is c2FlxR10"></column>
+    <column name="c2FlxR10Var" type="TFLOAT" default="-999" comment="estimated variance in c2FlxR10"></column>
+    <column name="c3FlxR1" type="TFLOAT" default="-999" comment="Flux inside r = 1"></column>
+    <column name="c3FlxR1Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR1"></column>
+    <column name="c3FlxR1Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR1"></column>
+    <column name="c3FlxR2" type="TFLOAT" default="-999" comment="Flux inside r = 2"></column>
+    <column name="c3FlxR2Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR2"></column>
+    <column name="c3FlxR2Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR2"></column>
+    <column name="c3FlxR3" type="TFLOAT" default="-999" comment="Flux inside r = 3"></column>
+    <column name="c3FlxR3Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR3"></column>
+    <column name="c3FlxR3Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR3"></column>
+    <column name="c3FlxR4" type="TFLOAT" default="-999" comment="Flux inside r = 4"></column>
+    <column name="c3FlxR4Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR4"></column>
+    <column name="c3FlxR4Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR4"></column>
+    <column name="c3FlxR5" type="TFLOAT" default="-999" comment="Flux inside r = 5"></column>
+    <column name="c3FlxR5Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR5"></column>
+    <column name="c3FlxR5Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR5"></column>
+    <column name="c3FlxR6" type="TFLOAT" default="-999" comment="Flux inside r = 6"></column>
+    <column name="c3FlxR6Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR6"></column>
+    <column name="c3FlxR6Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR6"></column>
+    <column name="c3FlxR7" type="TFLOAT" default="-999" comment="Flux inside r = 7"></column>
+    <column name="c3FlxR7Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR7"></column>
+    <column name="c3FlxR7Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR7"></column>
+    <column name="c3FlxR8" type="TFLOAT" default="-999" comment="Flux inside r = 8"></column>
+    <column name="c3FlxR8Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR8"></column>
+    <column name="c3FlxR8Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR8"></column>
+    <column name="c3FlxR9" type="TFLOAT" default="-999" comment="Flux inside r = 9"></column>
+    <column name="c3FlxR9Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR9"></column>
+    <column name="c3FlxR9Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR9"></column>
+    <column name="c3FlxR10" type="TFLOAT" default="-999" comment="Flux inside r = 10"></column>
+    <column name="c3FlxR10Err" type="TFLOAT" default="-999" comment="estimated error is c3FlxR10"></column>
+    <column name="c3FlxR10Var" type="TFLOAT" default="-999" comment="estimated variance in c3FlxR10"></column>
+    <column name="logC" type="TFLOAT" default="-999" comment="Abraham concentration index"></column>
+    <column name="logA" type="TFLOAT" default="-999" comment="Abraham asymmetry index"></column>
     <column name="activeFlag" type="TBYTE" default="-999" comment="indicates whether this detection/orphan is still a detection/orphan"></column>
-    <column name="assocDate" type="TSTRING" default="28881231" comment="date object association assigned"></column>
-    <column name="historyModNum" type="TSHORT" default="0" comment="modification number in the O-D association history"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release to reproduce queries through data releases"></column>
-  </table>
-  <table name="ObjectCalColor">
+    <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this detection was taken"></column>
+  </table>
+  <table name="StackModelFit">
     <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier"></column>
-    <column name="ippObjID" type="TLONGLONG" default="0" comment="ipp object identifier"></column>
+    <column name="stackDetectID" type="TLONGLONG" default="0" comment="ODM detection identifier"></column>
+    <column name="ippObjID" type="TLONGLONG" default="0" comment="IPP object identifier"></column>
+    <column name="ippDetectID" type="TLONGLONG" default="0" comment="detection ID generated by IPP"></column>
     <column name="filterID" type="TBYTE" default="0" comment="filter identifier"></column>
-    <column name="calColor" type="TFLOAT" default="0" comment=" color adopted for magnitude calculation (unit = mag)"></column>
-    <column name="calColorErr" type="TFLOAT" default="0" comment=" error in calibrating color (unit = mag)"></column>
-    <column name="calibModNum" type="TSHORT" default="0" comment="calibration modification number"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this color calibration was established"></column>
+    <column name="stackTypeID" type="TBYTE" default="0" comment="stack type identifier"></column>
+    <column name="surveyID" type="TBYTE" default="0" comment="survey flag identifier"></column>
+    <column name="primaryF" type="TBYTE" default="255" comment="identifies best stack detection for Stacks overlapping the same region of the sky."></column>
+    <column name="stackMetaID" type="TLONGLONG" default="0" comment="stack identifier"></column>
+    <column name="deVRadius" type="TFLOAT" default="-999" comment="deVaucouleurs radius"></column>
+    <column name="deVRadiusErr" type="TFLOAT" default="-999" comment="estimated error in deVaucouleurs radius"></column>
+    <column name="deVMag" type="TFLOAT" default="-999" comment="deVaucouleurs magntiude"></column>
+    <column name="deVMagErr" type="TFLOAT" default="-999" comment="estimated error in deV_mag"></column>
+    <column name="deVAb" type="TFLOAT" default="-999" comment="deVaucoulerus axis ratio"></column>
+    <column name="deVAbErr" type="TFLOAT" default="-999" comment="estimated error in deVaucoulerus axis ratio"></column>
+    <column name="raDeVOff" type="TFLOAT" default="-999" comment="Offset in RA of deVaucouleurs fit from PSF RA"></column>
+    <column name="decDeVOff" type="TFLOAT" default="-999" comment="Offset in DEC of deVaucouleurs fit from PSF DEC"></column>
+    <column name="raDeVOffErr" type="TFLOAT" default="-999" comment="estimated error in ra offset"></column>
+    <column name="decDeVOffErr" type="TFLOAT" default="-999" comment="estimated error in dec offset"></column>
+    <column name="deVCf" type="TFLOAT" default="-999" comment="deVaucouleurs fit coverage factor"></column>
+    <column name="deVLikelihood" type="TFLOAT" default="-999" comment="deVaucouleurs fit likelihood factor"></column>
+    <column name="deVCovar11" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar12" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar13" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar14" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar15" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar16" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar22" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar23" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar24" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar25" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar26" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar33" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar34" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar35" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar36" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar44" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar45" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar46" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar55" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar56" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="deVCovar66" type="TFLOAT" default="-999" comment="covariance for deVaucouleurs fit"></column>
+    <column name="expRadius" type="TFLOAT" default="-999" comment="Exponential fit radius"></column>
+    <column name="expRadiusErr" type="TFLOAT" default="-999" comment="estimated error in Exponential fit radius"></column>
+    <column name="expMag" type="TFLOAT" default="-999" comment="Exponential fit magntiude"></column>
+    <column name="expMagErr" type="TFLOAT" default="-999" comment="estimated error in expMag"></column>
+    <column name="expAb" type="TFLOAT" default="-999" comment="Exponential fit axis ratio"></column>
+    <column name="expAbErr" type="TFLOAT" default="-999" comment="estimated error in Exponential fit axis ratio"></column>
+    <column name="raExpOff" type="TFLOAT" default="-999" comment="Offset in RA of Exponential fit from PSF RA"></column>
+    <column name="decExpOff" type="REAl" default="-999" comment="Offset in DEC of Exponential fit from PSF DEC"></column>
+    <column name="raExpOffErr" type="TFLOAT" default="-999" comment="estimated error in raExpOff"></column>
+    <column name="decExpOffErr" type="TFLOAT" default="-999" comment="estimated error in decExpOff"></column>
+    <column name="expCf" type="TFLOAT" default="-999" comment="Exponential fit coverage factor"></column>
+    <column name="expLikelihood" type="TFLOAT" default="-999" comment="Exponential fit likelihood factor"></column>
+    <column name="expCovar11" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar12" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar13" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar14" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar15" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar16" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar22" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar23" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar24" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar25" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar26" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar33" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar34" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar35" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar36" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar44" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar45" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar46" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar55" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar56" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="expCovar66" type="TFLOAT" default="-999" comment="covariance for Exponential fit"></column>
+    <column name="serRadius" type="TFLOAT" default="-999" comment="Sersic radius"></column>
+    <column name="serRadiusErr" type="TFLOAT" default="-999" comment="estimated error in Sersic radius"></column>
+    <column name="serMag" type="TFLOAT" default="-999" comment="Sersic magntiude"></column>
+    <column name="serMagErr" type="TFLOAT" default="-999" comment="estimated error in serMag"></column>
+    <column name="serAb" type="TFLOAT" default="-999" comment="Sersic axis ratio"></column>
+    <column name="serAbErr" type="TFLOAT" default="-999" comment="estimated error in Sersic axis ratio"></column>
+    <column name="serNu" type="TFLOAT" default="-999" comment="Sersic index"></column>
+    <column name="serNuErr" type="TFLOAT" default="-999" comment="estimated error in Sersic index"></column>
+    <column name="raSerOff" type="TFLOAT" default="-999" comment="Offset in RA of Sersic fit from PSF RA"></column>
+    <column name="decSerOff" type="TFLOAT" default="-999" comment="Offset in DEC of Sersic fit from PSF DEC"></column>
+    <column name="raSerOffErr" type="TFLOAT" default="-999" comment="estimated error in raSerOff"></column>
+    <column name="decSerOffErr" type="TFLOAT" default="-999" comment="estimated error in decSerOff"></column>
+    <column name="serCf" type="TFLOAT" default="-999" comment="Sersic fit coverage factor"></column>
+    <column name="serLikelihood" type="TFLOAT" default="-999" comment="Sersic fit likelihood factor"></column>
+    <column name="sersicCovar11" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar12" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar13" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar14" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar15" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar16" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar17" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar22" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar23" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar24" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar25" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar26" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar27" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar33" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar34" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar35" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar36" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar37" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar44" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar45" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar46" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar47" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar55" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar56" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar57" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar66" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar67" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="sersicCovar77" type="TFLOAT" default="-999" comment="covariance for Sersic fit"></column>
+    <column name="activeFlag" type="TBYTE" default="-999" comment="indicates whether this detection/orphan is still a detection/orphan"></column>
+    <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this detection was taken"></column>
+  </table>
+  <table name="StackToImage">
+    <column name="stackMetaID" type="TLONGLONG" default="0" comment="stack identifier"></column>
+    <column name="imageID" type="TLONGLONG" default="0" comment="hashed exposure-ccdID identifier"></column>
   </table>
 </tableDescriptions>
