Escape search term in DB query