diff --git a/projet/db/hyperdrive.sql b/projet/db/hyperdrive.sql
index 7e5e895da08c8b48600251f4f80d52a9bc55b0c9..e0a18a419c0f99c48f9ccea4be4305433ff36570 100644
--- a/projet/db/hyperdrive.sql
+++ b/projet/db/hyperdrive.sql
@@ -11,9 +11,9 @@ CREATE TABLE IF NOT EXISTS Users (
 );
 
 CREATE TABLE IF NOT EXISTS Paths (
-    paths varchar(50) NOT NULL,
+    paths varchar(400) NOT NULL,
     login varchar(60) NOT NULL,
-    parent varchar(50),
+    parent varchar(400),
     PRIMARY KEY (paths),
     FOREIGN KEY (login) REFERENCES Users(login),
     FOREIGN KEY (parent) REFERENCES Paths(paths)
@@ -22,9 +22,10 @@ CREATE TABLE IF NOT EXISTS Paths (
 CREATE TABLE IF NOT EXISTS Files (
     file_id varchar(100) NOT NULL,
     file_name varchar(50) NOT NULL,
-    paths varchar(50) NOT NULL,
+    paths varchar(400) NOT NULL,
     lat FLOAT,
     lng FLOAT,
+    addedon INT,
     PRIMARY KEY (file_id),
     FOREIGN KEY (paths) REFERENCES Paths(paths)
 );
diff --git a/projet/sql-request.js b/projet/sql-request.js
index 74f9e2362bea24585885432c5eb7f6142fbc675f..f09db8b4733c2f5c54618f4236a4cd4acc00c950 100644
--- a/projet/sql-request.js
+++ b/projet/sql-request.js
@@ -57,6 +57,7 @@ function insertUser(login, passwd, callback){
  * @param {string} parent Parent of the new folder
  */
 function addPath(path, login, parent, callback){
+    if (parent) parent = "'" + parent + "'";
     let q = `INSERT INTO Paths VALUES ('${path}', '${login}', ${parent});`;
     con.query(q, function(err, res) {
         if (err) {