Moved database persistence over to PouchDB to enable local storage for mobile.