Make the script write both the bycrash and byinstall versions of the data. Parameterize the queries by startdate and product_version_id so that we can use this on other versions.