implemented db connection pooling.
added option to specify port as first command line parameter.