SQL based migration system with migration management