Implementation of sql trees with Closure Table