made output methods its own program, updated execute_query to reflect change