ProjectModel now determines related database name.
wip #26: TextModel and tests.