fix extra quote error in SQL upgrade script