finished Transcations and modified migrate