changes added due to the parent_id removal from tag table

changes added due to the parent_id removal from tag table
change
```
->where('a.alias != "root"');
```
with
```
->where('a.ltf > 0');
```