Fix broken logic for recording to HourOfActivity table.

Tested:
1.  launch_tutorial_pixel --> same session ID and pixel-started appear in both databases
2. launch_tutorial, then launch_tutorial_pixel --> same session ID, started, and pixel-started appear in both databases