Add postgres port into the .cfg as well

Add postgres port into the .cfg as well