[feature] Separate directory from complete filepath to optimize sqlite access.
[feature] Count unique paths.
[refactor] Count queries re-organized.
[refactor] Reorganising code layout.