Sql (update to mac PR, but more optional)

This pull adds some code to allow multiline statements of sql, and directly querying for data from sql. Not everyone will want this, but it could be useful.