Updated app with couchDB