Fixed dbstore adapter for new store requirements
Merge branch 'dev' of https://github.com/ttsun/newt-2.0 into dev