Added Query class; used to carry a query request between the GUI and
Core.
Updated SQLDialog and subclasses to take advantage of the new Query
class; CRUD dialogs now adjust their contents based on existing database
structure and selected table.