Cleaned up code that wrote dbPort to yaml file
Merge pull request #199 from jasonerpenbeck/dbPortBug

Cleaned up code that wrote dbPort to yaml file