Nested nodes management with Peewee ORM