Add TimeHandler and register it
Rewrite epoche calculation and add tests
Fix typos in field names
Updated to use DBAL