Update migration status in database after a rollback