Set the returned error to nil if we detect pg error code 23505