Initial search and communication with CouchDB