make search object callable;duck typing for CouchDB;