my advice is to pay attention to another document and graph database: orientdb http://code.google.com/p/orient/
like mongodb it is a document database, which means it can store json like objects and because it supports some sort of sql it should be much easier to write an adapter