enhancement: moved some searchs (FS directories/files + DB directories) out of content-type loop (was launched for each type)