Switching to PDO, work in progress.