Fix printing of SQL query of sql_extractor on log