Fixed constructor that accepts dbName