Representing Trees in PostgreSQL | Notes from a Messy Desk