[16] Basic implemantation of dbManager

* Dropped old unused code, to be rewritten
* Event log improvements