Various fixes, often in SQL

This builds off of https://github.com/ContinuumIO/blaze/pull/270 and https://github.com/ContinuumIO/blaze/pull/272

No theme here other than that I'm building a demo and fixing everything that breaks.  Mostly this includes sqlalchemy stuff.