Fixes bug 977634 - use UPSERT for raw_crashes insert/update

This is similar to work that was done for `processed_crashes` to reduce the number of transactions needed for each insert/update.
important changes start here