Restructuration: `db.sync` need a `_type` field and a document cannot to be fetched by its _id anymore (the _type should be added). But now, a document can be fetched by its URI.
nedb: support array _id in query
implement model reference and make all tests pass