retry when getting mysql duplicate entry errors on first_or_create
Merge https://github.com/code-dot-org/dashboard/pull/717
Merge branch 'finished' of github.com:code-dot-org/dashboard into finished