Update service.php and views to use localStorage not pouchdb