Store relational data in PouchDB/CouchDB