         # TODO: rename to "save"
         persist : (callback) ->
             json = JSON.stringify(@_toJSON())
+            console.log("Persisting: #{json}")
             FS.writeFile @_dbPath(), json, (err) ->
                 if err
                     console.log(err)

    class Model
        # seed is a JSON.parse'd object loaded from disk.
        constructor : (seed) ->
            @_persistentProperties = []
            info = null
            ctor = null

FS   = require('fs')
Path = require('path')

module.exports = (schema, opts) ->
    {persist, folder, filename} = opts if opts?
    if !persist then persist = true
    if persist
