diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 283f7e2a22f9b2c72f316753577b58a602b4872c..0a40ceb2e3ea532aae284698d4bd276fc0686d55 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,20 +7,8 @@ services:
 # Configure test-database
 variables:
   MYSQL_DATABASE: db
-  MYSQL_ROOT_PASSWORD: password
-  
-# Create database tables
-#connect:
-#  image: mysql
-#  script:
-#  - echo "SELECT 'OK';" | mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE" < create_tables.sql
-
-# Install node libraries
-before_script:
-  - npm install
-  - apt-get update -q && apt-get install -qqy --no-install-recommends mysql-client
-  - mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mysql "$MYSQL_DATABASE" < create_tables.sql
-  
+  MYSQL_ROOT_PASSWORD: secret
+    
 # Run JEST tests
 test:
   script:
diff --git a/dao/persondao.test.js b/dao/persondao.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..222b1e4624d5f37a6d22227f90b051c800065726
--- /dev/null
+++ b/dao/persondao.test.js
@@ -0,0 +1,36 @@
+var mysql = require("mysql");
+
+var pool = mysql.createPool({
+  connectionLimit: 2,
+  host: "mysql",
+  user: "root",
+  password: "secret",
+  database: "db",
+  debug: false
+});
+
+test("query db", () => {
+  pool.getConnection((err, connection) => {
+    console.log("Connected to database");
+    if (err) {
+      console.log("Feil ved kobling til databasen");
+      res.json({ error: "feil ved ved oppkobling" });
+    } else {
+      connection.query(
+        "select navn, alder, adresse from person",
+        (err, rows) => {
+          connection.release();
+          if (err) {
+            console.log(err);
+            res.json({ error: "error querying" });
+          } else {
+            console.log("returning rows");
+            res.json(rows);
+          }
+        }
+      );
+    }
+  });
+
+  expect(sum(1, 2)).toBe(3);
+});
\ No newline at end of file