Fix prob on tree table constraint
Fix minor bug
Changed type tree_tbl.tree_id for char(20)