Updates default.py so that if user selects a different database, the port number changes as well.