PDOify base.php (#2)