Added comments to the DatabaseManager class