Added cloning to the database model and methods needed to keep it up to date as migration operations are processed by the SQL generator.