Db: support analysys of references
Model: support handling n:m relations (draft/incomplete)
Improved doc