Index the timestamp field also use  primitive wrappers

Indexing speeds up the archiver query based on this filed.
Correct the event registration.

Thanks to shay Hassdim
Remove extra imports