OwnCloud 9 DB Merge

Hey Guys,

I am doing a domain migration my owncloud is connected to our AD and is using AD integration to auth users. I have not issues with my query to find and auth the users. My issue is this… When they auth on the new domain none of their existing shares and files are linked to their new domain account. Is there a DB query or change that i can do to merge data from their old domain account to their new one on the OwnCloud DB?

Any advice is appreciated, Thanks.