For bonus points, clone your production db locally and test your script against it a few times first.
Or, you know, have a staging server.
Or, you know, have a staging server.
This is the reason why enterprises always use staging servers with test suites.
It is irrelevant if you use NoSQL, SQL, or magic, if you don't have development+staging+production platforms for a business reliant on an information system, you're doing it wrong and it will bite you hard eventually.