find if vendor/id already in db