diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000000000000000000000000000000000000..28a804d8932aba40f168fd757a74cb718a955a1a
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JavaScriptSettings">
+    <option name="languageLevel" value="ES6" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/dao/persondao.js b/dao/persondao.js
index 987542b21d3ceef0e2423ce506a08a2323fbcea9..5839d1dce600ed32dc4d85ed8b6a07d48f83f52e 100644
--- a/dao/persondao.js
+++ b/dao/persondao.js
@@ -21,4 +21,20 @@ module.exports = class PersonDao extends Dao {
       callback
     );
   }
+
+  updateOne(id, json, callback) {
+    var val = [json.navn, json.adresse, json.alder, id];
+    super.query(
+        "update person set navn = ?, adresse = ?, alder = ? where id = ?",
+        val,
+        callback
+    );
+  }
+
+  deleteOne(id, callback) {
+    super.query(
+        "delete from person where id = ?",
+        callback
+    );
+  }
 };