updated code to provide correct fk associations for media_entity table
to url-img table entities. this is a 1 - 1 relationship.