Migrated index to PDO database class, refs #1287