Try solution out off Python. There are free versions of MUMPS for example. MUMPS is a tree database. Andrey