updated code to allow for more re-usability for img-url and table
association processing. allows for correct java bean association for fk
from media_entity table to url-img entities.