Yeah, i know what you are talking about;
The qurey he was building was in 5.2; in 6.x we migrated everything into insight and so logdb i dont think exists anymore;
You would need to use either insightdb or tipsdb.
tipdb would work if you want to use an endpoint as your referance.
Insight basically has everything else.
Overall you need to create a custom pgsql authentication source and edit the filters to get the data you want.
If you need the 5.2 query i can get that for you, but when it comes to 6.x it wont work.