diff --git a/api/lottery.js b/api/lottery.js
index aacd9df..e336ada 100644
--- a/api/lottery.js
+++ b/api/lottery.js
@@ -1,10 +1,5 @@
const path = require('path');
-const mongoose = require('mongoose');
-mongoose.connect('mongodb://localhost:27017/vinlottis', {
- useNewUrlParser: true
-})
-
const Highscore = require(path.join(__dirname + '/../schemas/Highscore'));
const Wine = require(path.join(__dirname + '/../schemas/Wine'));
diff --git a/api/retrieve.js b/api/retrieve.js
index 92bb2a6..d377c60 100644
--- a/api/retrieve.js
+++ b/api/retrieve.js
@@ -1,8 +1,4 @@
const path = require("path");
-const mongoose = require("mongoose");
-mongoose.connect("mongodb://localhost:27017/vinlottis", {
- useNewUrlParser: true
-});
const Purchase = require(path.join(__dirname + "/../schemas/Purchase"));
const Wine = require(path.join(__dirname + "/../schemas/Wine"));
diff --git a/api/subscriptions.js b/api/subscriptions.js
index 574280c..1d61a08 100644
--- a/api/subscriptions.js
+++ b/api/subscriptions.js
@@ -2,13 +2,8 @@ const express = require("express");
const path = require("path");
const router = express.Router();
const webpush = require("web-push"); //requiring the web-push module
-const mongoose = require("mongoose");
const schedule = require("node-schedule");
-mongoose.connect("mongodb://localhost:27017/vinlottis", {
- useNewUrlParser: true
-});
-
const mustBeAuthenticated = require(path.join(
__dirname + "/../middleware/mustBeAuthenticated"
));
diff --git a/api/update.js b/api/update.js
index 59642dc..c3fa4d1 100644
--- a/api/update.js
+++ b/api/update.js
@@ -1,9 +1,5 @@
const express = require("express");
const path = require("path");
-const mongoose = require("mongoose");
-mongoose.connect("mongodb://localhost:27017/vinlottis", {
- useNewUrlParser: true
-});
const sub = require(path.join(__dirname + "/../api/subscriptions"));
diff --git a/src/components/TodaysPage.vue b/src/components/TodaysPage.vue
index 0dfdf12..de81fc1 100644
--- a/src/components/TodaysPage.vue
+++ b/src/components/TodaysPage.vue
@@ -11,6 +11,7 @@
diff --git a/src/components/WinnerPage.vue b/src/components/WinnerPage.vue
index 434f9d7..c60472c 100644
--- a/src/components/WinnerPage.vue
+++ b/src/components/WinnerPage.vue
@@ -29,7 +29,7 @@