Updated to include getDbName() method