Use joins to fetch behaviours and trackingpoints. Simplify event query as much as possible. AISAB-170.