Improve way which db request are made
Merge branch 'master' of github.com:bobar/TDB