Tweak image img_name index updater to current tables.sql (primary key)