Created query tester

Executes the query and prints some stuff