added db
message processing and playback working, hooking in stats handling