added server port to agent config, added database config to server also