removed trailing semicolons from SQL queries.