+/*
+ * FIXME this should be defined somewhere else.
+ */
+int transaction_based = 1;
+
+DB *dbp[MAXCDB]; /* One DB handle for each Citadel database */
+DB_ENV *dbenv; /* The DB environment (global) */
+
+struct cdbssd { /* Session-specific DB stuff */
+ DBC *cursor; /* Cursor, for traversals... */
+ DB_TXN *tid; /* Transaction ID */
+};
+
+struct cdbssd *ssd_arr = NULL;
+int num_ssd = 0;
+#define MYCURSOR ssd_arr[CC->cs_pid].cursor
+#define MYTID ssd_arr[CC->cs_pid].tid
+