Fixed GUI index test
database fix