Import: add all tags for a media in one call
import: make the function atomic

Using an atomic forces the use of a transaction that speedup the import.
import: exclude hidden files