change database from PouchDb to nedb