U1db implementation

Any reason to not depend on u1db and just import relevant parts?