diff --git a/browserid/app.js b/browserid/app.js
index f95f06a4b13ddf78bb23782fac6978b3b3f41fb2..7b9475279f3823d66f72bbcea84d753197c19f36 100644
--- a/browserid/app.js
+++ b/browserid/app.js
@@ -21,7 +21,7 @@ substitution = require('../libs/substitute.js');
 logging = require("../libs/logging.js");
 
 // open the databse
-db.open();
+db.open(configuration.get('database'));
 
 // looks unused, see run.js
 // const STATIC_DIR = path.join(path.dirname(__dirname), "static");
diff --git a/libs/configuration.js b/libs/configuration.js
index 2690dc1f2fa1eb02b72e072f1f0cca4e436cd439..4ad59da7fe5963ac8b5d9489e910e3b5378c7ff8 100644
--- a/libs/configuration.js
+++ b/libs/configuration.js
@@ -26,28 +26,32 @@ const g_configs = {
     port: '443',
     scheme: 'https',
     use_minified_resources: true,
-    log_path: '/home/browserid/var/'
+    log_path: '/home/browserid/var/',
+    database: { driver: "mysql" }
   },
   development: {
     hostname: 'dev.diresworb.org',
     port: '443',
     scheme: 'https',
     use_minified_resources: true,
-    log_path: '/home/browserid/var/'
+    log_path: '/home/browserid/var/',
+    database: { driver: "mysql" }
   },
   beta: {
     hostname: 'diresworb.org',
     port: '443',
     scheme: 'https',
     use_minified_resources: true,
-    log_path: '/home/browserid/var/'
+    log_path: '/home/browserid/var/',
+    database: { driver: "mysql" }
   },
   local: {
     hostname: '127.0.0.1',
     port: '10002',
     scheme: 'http',
     use_minified_resources: false,
-    log_path: './'
+    log_path: './',
+    database: { driver: "json" }
   }
 };