Add support to vary the number of SQL sockets made
Change order of code sample to match other sections