Db: fix to work around possible PDO bug