Update sqlalchemy code for compatability with 0.9 series

The latest SQLAlchemy has shuffled some imports around, so we need to do the same.

This also fixes the insert-node-allocation query to set all columns in the table.  I'm not sure if this was working with previous versions of SQLAlchemy or not, but it wasn't working with 0.9.