       "Notebook": Notebook.toJSON()
     }
     JSON.stringify(output)
+
+  importData: (obj) ->
+    input = JSON.parse(obj)
+    Note.refresh(input.Note)
+    Notebook.refresh(input.Notebook)
 
   # Merges the client & server, using a queue
   # Spits out the result, id changes & fs changes


    request.onsuccess = (e) =>
      result = e.target.result
      callback(result)

  deleteNote: ->
    trans = Sync.db.transaction(["notes"], "readwrite")
    store = trans.objectStore "notes"
    request = store.delete(@id)

Model.Sync.Methods =
  extended: ->

      # Free up server resources. Cause why not.
      socket.disconnect()

  # The main syncing function.
  # It downloads the meta, then updates it to latest version as well as doing various other io.
  # It's magic. Trust me.
  doSync: ->

    # Downloads a meta file.
    $.ajax(
