Dataview performance improvements

These are some small spare time changes to improve the performance of CATMAID's data views. This is probably only noticeable with large setups with many projects, stacks and tags. The penalty for smaller setups should be negligible. So @fzadow, could you please test if this helps on your setup?