Database code fixes and support for models.
Merge branch 'master' of github.com:biomarkers/vision