Got a preliminary version of the script which will denormalize tables.