stored procedure: Almost ready to migrate records