Add skeleton PL/pgSQL function to translate catsop data into treenodes