Index: trunk/psModules/src/concepts/pmConceptsRead.c
===================================================================
--- trunk/psModules/src/concepts/pmConceptsRead.c	(revision 18182)
+++ trunk/psModules/src/concepts/pmConceptsRead.c	(revision 18185)
@@ -371,11 +371,4 @@
     PS_ASSERT_PTR_NON_NULL(config, NULL);
 
-    psDB *db = pmConfigDB(config);      // Database handle
-    if (!db) {
-        psErrorClear();
-        psWarning("Unable to initialise database to write concepts.");
-        return NULL;
-    }
-
     psMetadataItem *item = psMetadataLookup(database, name); // Item to return
     if (item && item->type == PS_DATA_METADATA) {
@@ -389,4 +382,11 @@
     if (item->type != PS_DATA_STRING) {
         psWarning("%s in DATABASE in camera format is not of type STR --- ignored.", name);
+        return NULL;
+    }
+
+    psDB *db = pmConfigDB(config);      // Database handle
+    if (!db) {
+        psErrorClear();
+        psWarning("Unable to initialise database to write concepts.");
         return NULL;
     }
