Added support for SQL parameters to the writer.