fixed database dir to use plugin folders with custom names