Add missing semicolons to SQL