`oloop_query`.h, `oloop_historgram.h` and `oloop_column.h` should all derive from a query base class to reduce the amount of redundant code.