Convert port number to numeric value

Fixed the port number to convert from string to int for db connector.
Also fixed broken tests to add port number.