Actually it should be fairly easy to associate the images in the Files area with the database module. In the database you can have a text field for the image file name, say, imageName. Then you import (csv) the image file names (e.g. image001.jpg) into the imageName field. Then you add to the single or list view template or both, an img tag with the image file path and the image name.
For example, suppose your images location in your Moodle files is:
http://your.moodle.org/moodle/file.php/3/images/
You can add to the template the following html:
<img src="http://your.moodle.org/moodle/file.php/3/images/||imageName||" />
(|| stands for square brackets) and the image should be displayed.
Hope this helps