VID-1004: updated findVideoDuplicates() function to allow to use slave database