added DBManager class