How to insert a value from an unsaved model into a contains condition and not query the whole databa

Thanks for the good interaction guys!  I love it when I see ideas flying around the community.