handle db integrity errors with multiple clients updating simultaneously

NB These check may not be needed with Django 1.6

Errors can be triggered by running celery on the server and running the client
multiple times on the same host simultaneously.