MP1-4249-Fix for slow videodatabase query in case of many files in one directory
* also optimized GetFiles and SetIMDBDMovieDetails query