fix query logging for run_on_server
add truncate