Catching IntegrityError when we try to add the same record twice