Tool for organizing tree structure data in postgreSQL