Connected to db and output test table to index.