diff --git a/src/decoding/generateTreeFromDatabase.js b/src/decoding/generateTreeFromDatabase.js
index <HASH>..<HASH> 100644
--- a/src/decoding/generateTreeFromDatabase.js
+++ b/src/decoding/generateTreeFromDatabase.js
@@ -1,13 +1,13 @@
 export default function generateTreeFromDatabase(db, key = 0) {
   const rec = sub => {
     if (Array.isArray(sub)) {
-      return new List(sub.map(x => rec(db[x])))
+      return sub.map(x => rec(db[x]))
     } else if(typeof sub === 'object') {
       const res = {}
       for (let key in sub) {
         res[key] = rec(db[sub[key]])
       }
-      return new Map(res)
+      return res
     }
 
     return sub
Remove unrelated immutable.js code from generateTreeFromDatabase