Fix bug with compound index; Skip View tables
Prevent redundant statements
Remove dead code
Add comments to SQL output
Update tutorial