Removed exception for csv_writer at logging restart. Added try to sql insert. Added dialog box for file save