nedb db.update with "upsert: true" bug