This sounds like a windows vs unix issue. To the filesystem on Windows, upper case and lower case names are identical. Not so on Unix.
What I would do, because I'm developing on a Windows system, is simply type this at a command prompt in the directory where the images are found:
rename *.JPG *.jpg
Assuming the database records contain lowercase .jpg



