Adding line spacing for better readability
Waiting fors will show also when they have no parents

Previous implementation was only showing waiting-firs which had parents.
This now returns them all.
Query now returns also items without parents

Getting items with active parents is easy and relatively quick. It's hard
to efficiently add those, which don't have parents. Doint it in any way
other than with a union resulted in queries executiving in well over a
second.
Changing to query operation for uniformity
Correcting to dynamically retrieve table prefix