Update polymrphic tables with references to pages