Fix for CLI usage

Use db.entries, db._entries is not in kppy (any more?)