Changes in the original source

1. The SQL Command to create Clustered index was old, changed it to
latest one
2. Added try catch statement to output errors
3. The main function returns error code -1 and 0