added call prepareInternalLinkMediaForDatabase before preparing data to be updated