added PDO support to index