Create SQL load script automatically