:bug: fixed issue with getting the port number for mysql and postgres