Add functional tests for index page
Add test for available queries
Use a temporary database for testing