Fix for CLI usage

Use db.entries, db._entries is not in kppy (any more?)
Merge pull request #48 from FST777/master

Fix for CLI usage