tweaks to script to export production database to reporting server