Writing SQL load script