So, the sync actually means you are copying the data? If yes, why don't you simply copy A and name it B? Anyway, the data you are refering to are basically the page's object properties - coming from CMS_Tree and CMS_Document tables. So, just copy the values from respective property. See also the documentation on the other DB tables related to page.