refact DBManage
refact