utils.py: _DUPLICATE_USERNAME_ERRORS matches beginning of IntegrityErrors

PostgreSQL 9.1 now spits out more descriptive errors, so we should move
to an re match instead of a simple string match.

Fixes issue #43.