[Runtime Model] Add sqlite implemention for system events.
[Runtime Model] Add unittest for registered events.