added position test after moving models
renamed real depth column, simplified roots and a whole tree queries, added getTreeWhere method