Update update_port operation

  - Save in DB before calling pg_lib