Connect to debug search instance when appropriate environment variable is set
Obtain search and db names from environment variables