Index: trunk/ippdb/src/ippdb.h
===================================================================
--- trunk/ippdb/src/ippdb.h	(revision 9044)
+++ trunk/ippdb/src/ippdb.h	(revision 9054)
@@ -2466,4 +2466,6 @@
 typedef struct {
     char            *exp_id;
+    char            *camera;
+    char            *telescope;
     psS32           bytes;
     char            *md5sum;
@@ -2480,4 +2482,6 @@
 pzPendingImfileRow *pzPendingImfileRowAlloc(
     const char      *exp_id,
+    const char      *camera,
+    const char      *telescope,
     psS32           bytes,
     const char      *md5sum,
@@ -2515,4 +2519,6 @@
     psDB            *dbh,               ///< Database handle
     const char      *exp_id,
+    const char      *camera,
+    const char      *telescope,
     psS32           bytes,
     const char      *md5sum,
@@ -2541,4 +2547,6 @@
     psDB            *dbh,               ///< Database handle
     char            **exp_id,
+    char            **camera,
+    char            **telescope,
     psS32           *bytes,
     char            **md5sum,
@@ -2700,4 +2708,5 @@
 
 typedef struct {
+    char            *exp_tag;
     char            *exp_id;
     char            *camera;
@@ -2713,4 +2722,5 @@
 
 newExpRow *newExpRowAlloc(
+    const char      *exp_tag,
     const char      *exp_id,
     const char      *camera,
@@ -2747,4 +2757,5 @@
 bool newExpInsert(
     psDB            *dbh,               ///< Database handle
+    const char      *exp_tag,
     const char      *exp_id,
     const char      *camera,
@@ -2772,4 +2783,5 @@
 bool newExpPop(
     psDB            *dbh,               ///< Database handle
+    char            **exp_tag,
     char            **exp_id,
     char            **camera,
@@ -2931,5 +2943,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *class;
     char            *class_id;
@@ -2943,5 +2955,5 @@
 
 newImfileRow *newImfileRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class,
     const char      *class_id,
@@ -2976,5 +2988,5 @@
 bool newImfileInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class,
     const char      *class_id,
@@ -3000,5 +3012,5 @@
 bool newImfilePop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **class,
     char            **class_id,
@@ -3158,5 +3170,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *camera;
     char            *telescope;
@@ -3183,5 +3195,5 @@
 
 rawDetrendExpRow *rawDetrendExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *camera,
     const char      *telescope,
@@ -3229,5 +3241,5 @@
 bool rawDetrendExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *camera,
     const char      *telescope,
@@ -3266,5 +3278,5 @@
 bool rawDetrendExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **camera,
     char            **telescope,
@@ -3437,5 +3449,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *camera;
     char            *telescope;
@@ -3462,5 +3474,5 @@
 
 rawScienceExpRow *rawScienceExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *camera,
     const char      *telescope,
@@ -3508,5 +3520,5 @@
 bool rawScienceExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *camera,
     const char      *telescope,
@@ -3545,5 +3557,5 @@
 bool rawScienceExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **camera,
     char            **telescope,
@@ -3716,5 +3728,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *class;
     char            *class_id;
@@ -3741,5 +3753,5 @@
 
 rawImfileRow *rawImfileRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class,
     const char      *class_id,
@@ -3787,5 +3799,5 @@
 bool rawImfileInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class,
     const char      *class_id,
@@ -3824,5 +3836,5 @@
 bool rawImfilePop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **class,
     char            **class_id,
@@ -3995,5 +4007,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *recipe;
     psS32           p1_version;
@@ -4006,5 +4018,5 @@
 
 p1PendingExpRow *p1PendingExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psS32           p1_version
@@ -4038,5 +4050,5 @@
 bool p1PendingExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psS32           p1_version
@@ -4061,5 +4073,5 @@
 bool p1PendingExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **recipe,
     psS32           *p1_version
@@ -4218,5 +4230,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *recipe;
     psS32           p1_version;
@@ -4230,5 +4242,5 @@
 
 p2PendingExpRow *p2PendingExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psS32           p1_version,
@@ -4263,5 +4275,5 @@
 bool p2PendingExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psS32           p1_version,
@@ -4287,5 +4299,5 @@
 bool p2PendingExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **recipe,
     psS32           *p1_version,
@@ -4445,5 +4457,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *class_id;
     char            *uri;
@@ -4459,5 +4471,5 @@
 
 p2PendingImfileRow *p2PendingImfileRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -4494,5 +4506,5 @@
 bool p2PendingImfileInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -4520,5 +4532,5 @@
 bool p2PendingImfilePop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **class_id,
     char            **uri,
@@ -4680,5 +4692,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     psS32           p1_version;
     psS32           p2_version;
@@ -4691,5 +4703,5 @@
 
 p2ProcessedExpRow *p2ProcessedExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     psS32           p1_version,
     psS32           p2_version
@@ -4723,5 +4735,5 @@
 bool p2ProcessedExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     psS32           p1_version,
     psS32           p2_version
@@ -4746,5 +4758,5 @@
 bool p2ProcessedExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     psS32           *p1_version,
     psS32           *p2_version
@@ -4903,5 +4915,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     char            *class_id;
     char            *uri;
@@ -4922,5 +4934,5 @@
 
 p2ProcessedImfileRow *p2ProcessedImfileRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -4962,5 +4974,5 @@
 bool p2ProcessedImfileInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -4993,5 +5005,5 @@
 bool p2ProcessedImfilePop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     char            **class_id,
     char            **uri,
@@ -5158,5 +5170,5 @@
 
 typedef struct {
-    char            *exp_id;
+    char            *exp_tag;
     psS32           p2_version;
     psS32           p3_version;
@@ -5169,5 +5181,5 @@
 
 p3PendingExpRow *p3PendingExpRowAlloc(
-    const char      *exp_id,
+    const char      *exp_tag,
     psS32           p2_version,
     psS32           p3_version
@@ -5201,5 +5213,5 @@
 bool p3PendingExpInsert(
     psDB            *dbh,               ///< Database handle
-    const char      *exp_id,
+    const char      *exp_tag,
     psS32           p2_version,
     psS32           p3_version
@@ -5224,5 +5236,5 @@
 bool p3PendingExpPop(
     psDB            *dbh,               ///< Database handle
-    char            **exp_id,
+    char            **exp_tag,
     psS32           *p2_version,
     psS32           *p3_version
@@ -5602,5 +5614,5 @@
     psS32           det_id;
     psS32           iteration;
-    char            *exp_id;
+    char            *exp_tag;
     bool            include;
 } detInputExpRow;
@@ -5614,5 +5626,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     bool            include
 );
@@ -5647,5 +5659,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     bool            include
 );
@@ -5671,5 +5683,5 @@
     psS32           *det_id,
     psS32           *iteration,
-    char            **exp_id,
+    char            **exp_tag,
     bool            *include
 );
@@ -5828,5 +5840,5 @@
 typedef struct {
     psS32           det_id;
-    char            *exp_id;
+    char            *exp_tag;
     char            *class_id;
     char            *uri;
@@ -5846,5 +5858,5 @@
 detProcessedImfileRow *detProcessedImfileRowAlloc(
     psS32           det_id,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -5885,5 +5897,5 @@
     psDB            *dbh,               ///< Database handle
     psS32           det_id,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -5915,5 +5927,5 @@
     psDB            *dbh,               ///< Database handle
     psS32           *det_id,
-    char            **exp_id,
+    char            **exp_tag,
     char            **class_id,
     char            **uri,
@@ -7231,5 +7243,5 @@
     psS32           det_id;
     psS32           iteration;
-    char            *exp_id;
+    char            *exp_tag;
     char            *class_id;
     char            *uri;
@@ -7250,5 +7262,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -7290,5 +7302,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *class_id,
     const char      *uri,
@@ -7321,5 +7333,5 @@
     psS32           *det_id,
     psS32           *iteration,
-    char            **exp_id,
+    char            **exp_tag,
     char            **class_id,
     char            **uri,
@@ -7486,5 +7498,5 @@
     psS32           det_id;
     psS32           iteration;
-    char            *exp_id;
+    char            *exp_tag;
     char            *recipe;
     psF64           bg;
@@ -7504,5 +7516,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psF64           bg,
@@ -7543,5 +7555,5 @@
     psS32           det_id,
     psS32           iteration,
-    const char      *exp_id,
+    const char      *exp_tag,
     const char      *recipe,
     psF64           bg,
@@ -7573,5 +7585,5 @@
     psS32           *det_id,
     psS32           *iteration,
-    char            **exp_id,
+    char            **exp_tag,
     char            **recipe,
     psF64           *bg,
