i want to check if the user inputed record is in the database(relational) before adding or saving it.