Allow subdirectories research for db construction
Fix bug in mdct atom construction