Added test for losing indexes after reopening the database
Don't forget the indexnames after reopening a store
Also update the index columns.
Merge pull request #164 from DickvdBrink/indexes-lost

Fix index issues