Move send query logic into separate function
Reply query with TCP when truncate bit is set