adding prepare() function to address migration of the library relation in ding_news nodes