working code for getting twitter data and store to couchdb