Final sql chapter commit

The rest of the work for the sql chapter was committed all at once.