minor tweaks

Fixed PDO error,
added dot export