Fix duplicate identifier
Add script for creating SQL update script