completed writing section of SQL driver