Added the DbManager class