pass the port to upload_database()