sql writer - add newline to the end of file