added port & database command line options