Added database utility classes
Merge branch 'master' of github.com:aheshan/thincms