Update compare-images.pl

Added command line option for which database to check