Safely work with a production database in an insecure environment