DB: fixed upgrade from version 1;
sped up creation of events by replacing properties creation with cache;
Fixes #8