$pin = fetched pin
$current = fetched password

pin is updated with $newpin where pass = $current