fixing the rollback query to only rollback database being migrated and not others.