Feature/5895 store all incoming documents in sync db

Not sure, kali did it like that, i would guess for easiness of development. Will change.