Feature/5895 store all incoming documents in sync db