Corrected TreeDb.c