Properly testing for new user in DB before adding a possible duplicate