collapse_sql_lines function

Collapse SQL lines into single character