Moved SQL code in MigrationSprocs to the DAO class.