Started work on better database interface.
Continued working on improved query interface.
Finish foundation for PlotData, created a Query class.