make update script to support port in db host