make sure indexes work in sinatra app