Refactoring DB part
Merge branch 'master' of https://github.com/yankovskiy/PhotoTools.git