Wait for db if service port is defined