Fix: read the port number from the database properties

Read the port number from the database properties instead of
using the hardcoded value 10121.
This allows the users to set a different port when setting up
port forwarding over an ssh tunnel.
V01-07-19: read the port number from the database properties