MP1-4253 : Add all files to database in a background thread
MP1-4253 : Config options for add video files to videodatabase
MP1-4253 : Some code refactoring