diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php
index e9ee4453ef2c75024244dc495093332e495dc4a6..07c361fc7ad0bcb4b9133324917d6c1bb6576d55 100644
--- a/modules/consent/lib/Auth/Process/Consent.php
+++ b/modules/consent/lib/Auth/Process/Consent.php
@@ -96,12 +96,17 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
 		} else {
 			$this->focus = NULL;
 		}
-
+		
+		$this->store = NULL;
 		if (array_key_exists('store', $config)) {
-			$this->store = sspmod_consent_Store::parseStoreConfig($config['store']);
-		} else {
-			$this->store = NULL;
-		}
+			try {
+				SimpleSAML_Logger::error('Consent - constructor() : Before creation');
+				$this->store = sspmod_consent_Store::parseStoreConfig($config['store']);
+				SimpleSAML_Logger::error('Consent - constructor() : After creation');
+			} catch(Exception $e) {
+				SimpleSAML_Logger::error('Consent - constructor() : Could not create consent storage: ' . $e->getMessage());
+			}
+		} 
 
 	}
 
diff --git a/modules/consent/lib/Consent/Store/Database.php b/modules/consent/lib/Consent/Store/Database.php
index 156721465cbc189243bd464abf834e1620b383dd..e9ea1edafda5eb4aa92caaa8e580f5d36e3c949f 100644
--- a/modules/consent/lib/Consent/Store/Database.php
+++ b/modules/consent/lib/Consent/Store/Database.php
@@ -124,6 +124,8 @@ class sspmod_consent_Consent_Store_Database extends sspmod_consent_Store {
 		} else {
 			$this->table = 'consent';
 		}
+		
+		$db = $this->getDB();
 	}
 
 
@@ -346,13 +348,13 @@ class sspmod_consent_Consent_Store_Database extends sspmod_consent_Store {
 			return $this->db;
 		}
 
-		try {
-			$this->db = new PDO($this->dsn, $this->username, $this->password);
-		} catch (PDOException $e) {
-			SimpleSAML_Logger::error('consent:Database - Failed to connect to \'' .
-				$this->dsn . '\': '. $e->getMessage());
-			$this->db = FALSE;
-		}
+		//try {
+		$this->db = new PDO($this->dsn, $this->username, $this->password);
+		// 		} catch (PDOException $e) {
+		// 			SimpleSAML_Logger::error('consent:Database - Failed to connect to \'' .
+		// 				$this->dsn . '\': '. $e->getMessage());
+		// 			$this->db = FALSE;
+		// 		}
 
 		return $this->db;
 	}