redo db for doc and user