test for already in db