converted setup process & initial view to pouchdb