Update index.md

Fixes error with for loop. Was returning key instead of the name of the database which is the second returned value.
Merge pull request #2 from dre1080/master

Fixes typo/error with for loop.