fixed problematic db functions
Merge branch 'master' of github.com:WeAreDev3/jetstream