Add all files to database in a background thread when LoadDirectory executed.