fixes move to port being in config file, and app references to db.js