[TASK] finish refactoring of cleanupPiwikDB

Resolves #6