Need help with searching values in databases

You’ll want to utilize the .eq() function.

Instead of .contains(‘villageLevel’, $w(’ #iTitle ').value)

try

.eq(‘villageLevel’, $w(’ #iTitle ').value)