Sort out Table.Base vs. Query.Base.

Coming from SchemeQL2, the idea is that Query.Base represents an
arbitrary EDB. SQL, that means a stored table.  The transition could
be smoother, but should be enough for now.