Added DBManager to manage thr database