Migrated index to PDO database class, refs #1287
Merge pull request #148 from BNoiZe/master

Migrated index to PDO database class, refs #1287