fixing DBManager