Update sql_writer.py

without checks... let's see whether we got the desired query lines