Small fixes on database driver
Merge branch 'master' of github.com:fastslack/jUpgradePro