Rebuild the logic of the DbManage.
Add the files needed.