Redo Main and DB