Changed to a better solution about CouchDbConnImpl