Updated execute_query to handle arbitrarily large queries