Added missing semicolons in SQL statements