Improved the configuration parameter to support the port and the database name.