update pouchdb, change errors to new format