Similiarly to Pouch.DBName I should have caught this before, but these should be Pouch.dbName and Pouch.realDBName, upper case names are expected to be object / constructors