some work towards pouchdb adapter, + skeletons for relationships