basic implementation of models and global database class
minor fixes
Merge branch 'master' of https://github.com/archivier-es/archivier-es into OO