first transformations to stage xml to database