added portNumber to getURL() which will be called by ant build-db task