Fixing quotes in SQL insert statements