echo "\nUsername: "******"\n";
 try {
     $oDBH = new DatabaseHandler($sUserPath);
     $oDBH->prepare();
 } catch (RuntimeException $e) {
     echo $e->getMessage() . "\n";
     continue;
 }
 $arPhotos = $oDBH->getPhotos();
 foreach ($arPhotos as $arPhoto) {
     echo $arPhoto['path'] . ': ';
     $oImage = new PSImage($sUserPath, $arPhoto);
     $oImage->prepare();
     if (!$oImage->isPicasaXMP()) {
         echo "No Picasa face information\n";
         $oDBH->setPhotoMerged($oImage->getIId());
         continue;
     }
     if ($oImage->isMicrosoftXMP()) {
         echo "Already have Microsoft Xmp.Data (Try to reindex image manual!)\n";
         $oDBH->setPhotoMerged($oImage->getIId());
         continue;
     }
     if (!$oImage->isImageResolutionLikeInTag()) {
         echo "Resolution changed since tagging with picasa\n";
         $oDBH->setPhotoMerged($oImage->getIId());
         continue;
     }
     $oImage->writeXMPMPTags();
     $oDBH->writeDatabaseTags($oImage);
     $oDBH->setPhotoMerged($oImage->getIId());