Replaced exceptions in DB::getPDO  with BaguetteSettingsException and handled PDOException