check to confirm sql has an ending semicolon

Saw bug where EOL no semicolon separates statements. This will check to confirm sql has an ending semicolon before saving EOL.