UpdateStream: Swap db for ndb, it's 20% cooler.

Also update the unit tests, begin building some mega permissions test