SqliteEventRepository introduced (events now persist).
SqliteEventRepository: event counting implemented.
SqliteEventRepository: small code simplification.