fixing db stuff in cli files
Merge pull request #240 from sn0opy/master

fixing db stuff in cli files