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.

Includes some pep8 cleanup.
I like losing the savepoints and the exception handling stuff.  It keeps all that stuff on the server side.