Generating the SQL now works in Query.
Removing all the query builder nonsense for just plain-ol-SQL.
Adding a todo just to keep track of things to do.