add DB functions
Merge branch 'master' of https://github.com/gidgid/Vstrategy