fixing code in brewerydb api class