comparing whether rfid exists in db or not