Use inspect instead of escaping quotes
Extract query construction
Rename method
Remove use of global variable
Pull tap list into a constant
Extract search_taps method
Rename variables for clarity