added working nested structured db