Fixed run_query to successfully reconnect and display results