improve nosql api (using JDocument)