add some changes to dbManager