setting up a persistence layer with provider and factory -- work in progress
adding a factory; wip
accessing couchdb through factory