Trees, networks and parts explosions in MySQL