change port to localhost, add deadline validation and functional
change couch to local,add deadline validation and functional