support for node density index; make max nodes and max area configurable in apidb and snapshot backends