Adodb->PDO, and fixes