Added command line parameters for port (arg 2) and MongoDB database (arg 3).