Fix error handling bug in sqlfs.js
More work on IQL editing.