chaiwat update function multi select & database