improve: Use cursor to count total in perfstore
Merge branch 'bugfixes' of github.com:capensis/canopsis into bugfixes