migration xml to sql