Revert "add folder database"

This reverts commit 152141c95d9341787863571cd711c8f71e5862a1.
Revert "Revert "add folder database""

This reverts commit 70a5a0d5b741f000bcf6e7432dc1f5044a957756.