Redesign of DatabaseMgr