Remake method save in Resource with PouchDB