Changes database port number if user selects different database.