Name node location query functions more clearly
Don't distinguish location types for location query

We can make use of table inheritance for location queries and don't need
to distinguish between connectors and treenodes. Both connector and
treenode tables inherit from the location tables and therefore share the
same ID sequence, IDs won't collide. Therefore, we can query the
location table directly.

Closes #793.