diff --git a/lib/database.js b/lib/database.js
index <HASH>..<HASH> 100644
--- a/lib/database.js
+++ b/lib/database.js
@@ -8,7 +8,8 @@ if(config.mongo && config.mongo.databaseUrl){
   module.exports = {
     devices: db.collection('devices'),
     events: db.collection('events'),
-    data: db.collection('data')
+    data: db.collection('data'),
+    subscriptions: db.collection('subscriptions')
   };
 
 } else {
@@ -27,9 +28,15 @@ if(config.mongo && config.mongo.databaseUrl){
     autoload: true }
   );
 
+  var subscriptions = new Datastore({
+    filename: path.join(__dirname, '/../subscriptions.db'),
+    autoload: true }
+  );
+
   module.exports = {
     devices: devices,
     events: events,
-    data: data
+    data: data,
+    subscriptions: subscriptions
   };
 }
Add subscriptions to DB definitions