Fixed bug to handle dbPort when no database is selected
Merge pull request #205 from jasonerpenbeck/configFix

Fixed bug to handle dbPort when no database is selected