MDL-39933 logging: Add filtering of events support to external databse
MDL-39933 logging: Update external database store to a working state

Fix issues with the store
Implement buffering of events
Support reading of events