added a parameter to GridStore constructor to select which database to use. Useful for testing