Fix dbManager issues