Many of the changes was needed to be able to collect and print engine name and table version id's in the ddl log.