Add bare-db mixin

For consideration.