Fixed fatal errors for PastDBTest.

Also fixed some warnings and changed namespace to make visible.
Saner setters in PastEvent.
Created list builder for PastEventType.