import IntegrityError before trying to use it
Merge pull request #27 from Dennovin/upstream

import IntegrityError before trying to use it